Create a Payment Link
Using your Secret Key, create a payment link from your backend with theamount and currency:
Currencies represented as integersThe Fintoc API represents currencies in its smallest possible units with no decimals (as an integer). That means that an amount of MXN 247.50 gets represented by Fintoc as 24750. You can read more about currencies here.
customer_email, checkout, metadata and business_profile are optional. Some of the optional parameters you can use to create your payment link are:
The recipient account object is defined by 4 attributes:
For a complete list of parameters, check the Payment Link API.
Share your Payment Link
Each payment link contains aurl that you can share with your customers through email, WhatsApp, or through other channels.
Offer cash payments in Mexico
If your organization has cash payments enabled, yourMXN Payment Links offer cash automatically. You don’t need to send any extra parameter when you create the link.
Your customer sees a Paga en efectivo option next to the other payment methods, with the logos of the stores that accept the link’s amount. After choosing it, your customer generates a voucher with the reference to pay at the store.
Fintoc hides the cash option when:
- No store accepts the Payment Link’s amount.
- Your organization’s checkout session lasts less than the time your customer needs to pay in cash.
Track payments
When customers use a payment link to complete a payment, Fintoc sends apayment_intent.succeeded webhook that you can use for fulfillment and reconciliation. This webhook will contain the metadata keys you used to create the payment link.
For more information, see our guide on how to complete the payment on your backend. In the case of payment links, we recommend you to only listen for payment_intent.succeeded events.
You can also see a Payment Link’s successful payments in the Dashboard:
- From the Payment Links table: Click the count in the Successful payments column. If the link has one successful payment, the Dashboard opens that payment’s detail. If it has several, the Dashboard opens your payment history filtered by that link and the Succeeded status. Links without successful payments show
--. - From the payment history: Use the Payment Link filter and enter the exact Payment Link ID. The filter appears when your organization has at least one Payment Link in the current mode.
- From a payment’s detail: If the payment came from a Payment Link, the Payment Link row shows the link’s ID. Click it to open the Payment Links table filtered by that ID.
Cancel a Payment Link
You can cancel an active payment link from the Dashboard or through the API. You can only cancel active links. You can’t cancel expired links, canceled links, or single-use links with a Completed status.From the Dashboard
- Go to the Payment Links table in the Dashboard.
- Click the three-dot menu on the row of the payment link you want to cancel.
- Select Deactivate.
- In the confirmation modal, click Deactivate.
You can’t undo the deactivation of a payment link. Payments that are already in progress when you deactivate the link can still complete.