Create a payment link
Create a payment link to accept card payments with the API.
In development
Payment links are currently in development. Feel free to review this section to understand how the feature will work when live.
Prerequisites
- Merchant profile status:
Enabled
- Card payment method status:
Enabled
Guide​
- Call the
createMerchantPaymentLink
mutation. - Add the
merchantProfileId
. - Payment method (line 6):
- If you only want to allow card payments, add the card
paymentMethodId
. - If you'd like to allow all eligible enabled payment methods, don't provide a value for
paymentMethodId
.
- If you only want to allow card payments, add the card
- Add the
amount
, including both thevalue
andcurrency
. - Include a
label
andreference
if you'd like. Note that thelabel
might appear on the payer's card statement. - Add the success payload. Include the final
url
in the payload if you'd like (line 14). - Add rejections (not shown).
SEPA Direct debit
If the merchant has both Core and Standard SEPA Direct Debit enabled and you don't provide a value for paymentMethodId
in #3, Core is used by default.
Mutation​
🔎 Open the mutation in API Explorer
mutation PaymentLink {
createMerchantPaymentLink(
input: {
merchantProfileId: "$MERCHANT_PROFILE_ID"
amount: { value: "50", currency: "EUR" }
paymentMethodIds: "$PAYMENT_METHOD_ID"
label: "Your custom label"
reference: "YourReference"
}
) {
... on CreateMerchantPaymentLinkSuccessPayload {
__typename
merchantPaymentLink {
url
}
}
}
}