curl "https://api.payload.co/payment_links/" \
-u secret_key_3bW9JMZtPVDOfFNzwRdfE: \
-d type="one_time" \
-d description="Payment Request" \
-d amount="10" \
-d processing_id="acct_3brhxEXpz2qEJ8vnIXbvW" \
-d checkout_options[billing_address]=false \
-d checkout_options[show_disclosure]=true
payment_link = pl.PaymentLink.create(
type='one_time',
description='Payment Request',
amount=10.00,
processing_id='acct_3brhxEXpz2qEJ8vnIXbvW',
checkout_options={
'billing_address': False,
'show_disclosure': True
}
)
payment_link = Payload::PaymentLink.create(
type: 'one_time',
description: 'Payment Request',
amount: 10.00,
processing_id: 'acct_3brhxEXpz2qEJ8vnIXbvW',
checkout_options: {
billing_address: false,
show_disclosure: true
}
)
<?php
$payment_link = Payload\PaymentLink::create(array(
'type' => 'one_time',
'description' => 'Payment Request',
'amount' => 10.00,
'processing_id' => 'acct_3brhxEXpz2qEJ8vnIXbvW',
'checkout_options' => array(
'billing_address' => false,
'show_disclosure' => true
)
));
?>
const payment_link = await pl.PaymentLink.create({
type: 'one_time',
description: 'Payment Request',
amount: 10.00,
processing_id: 'acct_3brhxEXpz2qEJ8vnIXbvW',
checkout_options: {
billing_address: false,
show_disclosure: true
}
})
var payment_link = await pl.PaymentLink.CreateAsync(new {
type = "one_time",
description = "Payment Request",
amount = 10.00,
processing_id = "acct_3brhxEXpz2qEJ8vnIXbvW",
checkout_options = new {
billing_address = false,
show_disclosure = true
}
});
You can include the following options in the checkout_options
field to enable different features such as the
enable_mobile_wallets
field to enable payments through Google Pay and Apple Pay.
option | type | description |
---|---|---|
payment[status] |
string |
Set transaction status to 'authorized' or 'processed' |
card_payments |
bool |
Enable/disable card payments |
bank_account_payments |
bool |
Enable/disable bank account payments |
billing_address |
bool |
Require the billing address |
payment_method_preview |
bool |
Enable a card or check preview of the payment details |
show_disclosure |
bool |
Display a standard disclosure on checkout |
enable_mobile_wallets |
bool |
Enable mobile wallet payment options |
enable_plaid |
bool |
Enable plaid payment option |
auto_billing_toggle |
bool |
Enable default payment method option |