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 successful payments using our Dashboard.