SDK pour Unity / Achat en un clic
  Retour à la documentation

SDK pour Unity

Achat en un clic

You can implement a simplified process of purchasing items in your application. This method is suitable for the sale of one SKU in any quantity. For example, 100 identical potions.

In this case, the user will proceed to payment right after selecting the item and its quantity, without adding items to the cart.

Note
The information about the discount (personalized or related to the purchase) will be available to the user only in the payment UI. The use of promo codes is not provided.

To implement the logic of one-click purchases:

  1. Get a payment token. To do this, call the PurchaseItem SDK method and pass data about the item and its quantity to it.
  2. Open the payment UI. To do this, call the OpenPurchaseUi SDK method and pass the payment token and order ID to it.

Cet article vous a été utile ?
Merci !
Que pouvons-nous améliorer ? Message
Nous sommes désolés de l'apprendre
Dites-nous pourquoi vous n'avez pas trouvé cet article utile. Message
Merci pour votre commentaire !
Nous examinerons votre message et l'utiliserons pour améliorer votre expérience.
Évaluer cette page
Évaluer cette page
Que pouvons-nous améliorer ?

Préfère ne pas répondre

Merci pour votre commentaire !

Liens utiles

Dernière mise à jour: 10 Octobre 2023

Faute de frappe ou autre erreur dans le texte ? Sélectionnez le texte concerné et appuyez sur Ctrl+Entée.

Signaler un problème
Nous améliorons continuellement notre contenu grâce à vos commentaires.
Indiquez votre adresse e-mail pour un suivi
Merci pour votre commentaire !