Kits SDK para Unity / Comprar con un solo clic
  Volver a Documentos

Kits SDK para Unity

Comprar con un solo 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.

Nota
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.

¿Te ha resultado útil este artículo?
¡Gracias!
¿Hay algo en lo que podamos mejorar? Mensaje
Lo sentimos
Por favor, cuéntanos por qué no te ha resultado útil este artículo. Mensaje
¡Gracias por tu mensaje!
Nos ayudará a mejorar tu experiencia.
Valore esta página
Valore esta página
¿Hay algo en lo que podamos mejorar?

Prefiero no responder

¡Gracias por tu mensaje!

Enlaces útiles

Última actualización: 10 de Octubre de 2023

¿Has encontrado una errata u otro error de texto? Selecciona el texto y pulsa Ctrl+Intro.

Informar de un problema
Nos esforzamos por ofrecer contenido de calidad. Tus comentarios nos ayudan a mejorar.
Déjanos tu correo electrónico para que te podamos responder
¡Gracias por tu mensaje!