ImportantNEVER consider the Payment Intent or any other transaction completed or failed before validating the signature. See example Recipe for the code to validate the webhook signature header.
Coinify provides a hosted checkout user interface to enable the customer to make a payment regarding a specific PaymentIntent. Use the GET HTTP verb and redirect the customer to the paymentWindowUrl
which is received in the successful response of this endpoint.
If you prefer not to use the Coinify checkout interface, you have the option to construct your own. When you create a PaymentIntent, the endpoint will return a Payment Intent ID. This ID can then be used to call our GET payment-intent endpoint, which will provide you with all the data points associated with the payment intent. This allows for greater flexibility and customization in how you handle payment intents in your application.
Preselect a cryptocurrency
To preselect a cryptocurrency before redirecting your customer to the Payment Window, use the quoteCurrency
parameter, as explained below. You can fetch the list of available cryptocurrencies available for a specific Payment Intent via Get Currency Estimations API endpoint.
Successful Response
Property | Type | Description |
---|---|---|
id | string | The ID of the newly created PaymentIntent. |
paymentWindowUrl | string | The URL to redirect the customer in order to use Coinify's payment window. |