SDKs para Unity / Comprar com um clique
  Voltar aos Documentos

SDKs para Unity

Comprar com um clique

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.

Observação
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.

Este artigo foi útil?
Obrigado!
Podemos melhorar alguma coisa? Mensagem
Que pena ouvir isso
Explique porque este artigo não foi útil para você. Mensagem
Obrigado pelo seu feedback!
Avaliaremos sua mensagem e a usaremos para melhorar sua experiência.
Avalie esta página
Avalie esta página
Podemos melhorar alguma coisa?

Não quero responder

Obrigado pelo seu feedback!

Links úteis

Última atualização: 10 de Outubro de 2023

Encontrou um erro de texto ou digitação? Selecione o texto e pressione Ctrl+Enter.

Relatar um problema
Nós sempre avaliamos nossos conteúdos. Seu feedback nos ajuda a melhorá-los.
Forneça um e-mail para que possamos responder
Obrigado pelo seu feedback!