USDC Settlement to 3rd Party - Solana
USDC Settlement to 3rd Party - Solana
USDC Settlement to 3rd Party - Solana
merchant id is on account creationShare payer events with Coinflow Sharing major events that a payer makes throughout their lifecycle on your website prior to them making a purchase will allow us to collect more information about them and improve your approval rates.
Fetch a session key
This creates a JWT token for the customer, and authorizes the user to call these endpoints. You will pass the returned session key as x-coinflow-auth-session-key header.
x-coinflow-auth-user-id can be thought of as a unique customer id that you use/define on your systems.Get the Totals for the checkout to show the customer a quote inclusive of all fees.
Tokenize the Credit Card Number. See tab: Tokenize New Card
Tokenize the wallet address which will be receiving the USDC for settlement.
Enable a New Card Checkout This endpoint will enable a new user who has never made a purchase to complete their purchase with a credit card. Below is an example of how you’d call the card checkout endpoint:
Re-tokenize a saved card number. See tab: Refresh Token w/ CVV
Enable a Saved Card Checkout This endpoint will enable a returning user to complete a purchase with a previously saved card. The returning user will need to enter their CVV before confirming the purchase. Once you’ve retrieved the refreshed card token, pass it into the Saved Card Checkout endpoint. Below is an example request:
Follow the below recipe to learn how to add 3DS to your new card and saved card requests.
COINFTESTchargebackProtectionData object to the new and saved card checkout as well as the below headers. See an example of what the request will look like when you pass chargeback protection data to the new card checkout endpoint.
x-device-id - Get this after adding the script in step 1x-coinflow-client-ip- the payer’s ip addressuser-agent - the payer’s User AgentchargebackProtectionData.productType and partnerId for production.👍 Want to trigger your own on success events?
You can listen to success event messages and get the payment id or pass your own function!
🚧 Session keys are valid for 30 minutes and must be refreshed afterwards.