Managing Global Transactions UK
Learn how to manage Global Transactions.
Aperçu
Les transactions représentent les prêts Affirm octroyés à l'utilisateur final. Vous pouvez interagir avec les transactions via l'API Transactions afin de modifier l'état de cette transaction, de mettre à jour les métadonnées ou de récupérer des détails.
Transactions Authorization
L’autorisation des transactions se produit une fois qu’un utilisateur a terminé avec succès le flux de checkout Affirm et retourne sur le site commerçant. L'autorisation de la transaction génère un id
unique qui sera utilisé pour faire référence au prêt à l'avenir.
Country-code Request Header
To move outside of the United States, any API calls that are made to Affirm such as Auth, Capture Transaction, etc., need to include this custom HTTP
header parameter to those requests:
country-code
When the country-code
parameter is used, it will be followed by the three-letter country code as shown below:
country-code: "GBR"
The country-code
parameter tells Affirm what country of legal incorporation is associated with the store where the user’s transaction was made, as well as what Affirm regional environment to route this request to. This is also an alpha-3 country code. If this parameter is missing, we will default to USA
.
Any end-user disclosures or emails that may be associated with this API will be sent in the language associated with the locale sent to Affirm.js when the transaction was made. For example, if en_GB
was passed to Affirm.js when this transaction was made, all emails and user communications associated with the APIs involved in this transaction will be shown in British English.
Actions
You can integrate various transactions into your back-end order management system, where you normally fulfill orders and process payments, refunds, and cancellations.
You can use the Transactions API to manage transactions with the following actions:
- Lire la transaction
- Capturer la transaction
- Annuler la transaction
- Rembourser la transaction
- Mettre à jour la transaction
These actions enable you to manage transactions across various states including authorized, captured, voided, etc.
Mis à jour 11 days ago