Transactions
The application can use openCheckout to use Pay3's Fiat only solution. Here the Pay3 modal will guide user through fiat payment services and deposit the payment to the app's Fiat account.
Parameters
- requestId (Type string): App needs to generate a unique identifier for every checkout call. This id will be provided in the Javascript events and Webhooks callbacks. This id can be used by the App to identify and update state in App's backend.
- user (Type Object): User details can be passed to Pay3 in this object.
- email (Type string): Provide valid email address of user. This data will be passed to OnRamp partner during the Fiat checkout flow. OnRamp partner would send mails to user updating them status of their transaction.
- payment (Type Array of Objects ): This section provides is the amount payable by the user of your platform. It could be cost price of your digital asset user wishes to checkout.
- amount (Type string): String representing currency amount in two decimal precision. The amount is provided separately for each supported currency.
- name (Type string): Name of the currency supported in the purchase flow. The name will be provided by Pay3 during Onboarding.
- paymentMethodKey (Optional Type String): Payment method key indicates the payment method that is suitable for the payment currency specified in name. This could help in customization of the user interface. This is considered only if the payment array has a single Object.
- userMessage (Type string): Short meaningful name of the asset user is about to purchase.
The application can use openPayout to use Pay3's fiat withdraw solution. Once this function is called, the Pay3 modal will guide the user through the withdraw of funds flow. The funds will be deposited into users' account.
This needs to be called after calling create payout order from application's backend.
Parameters
- requestId (Type string): App needs to generate a unique identifier for every payout call. This id will be provided in the Javascript events and Webhooks callbacks. This id can be used by the App to identify and update state in App's backend.
- token (Type string): This is a unique id generated by Pay3 backend on calling create payout order. This is to identify the approved order created by Application's backend.
- paymentMethodKey (Optional Type String): Payment method key indicates the payment method that will be used to complete the payment.
This function opens Pay3 buy crypto modal. The Buy modal will guide the user through the digital asset purchase flow using user's own digital assets like Coins and ERC20 tokens.
This needs to be called after calling create crypto checkout order from application's backend. The digital asset purchased will be deposited into the wallet address provided in the create crypto checkout order.
Parameters
- requestId (Type string): App needs to generate a unique identifier for every openCryptoCheckout call. This id will be provided in the Javascript events and Webhooks callbacks. This id can be used by the App to identify and update state in App's backend.
- token (Type string): This is a unique id generated by Pay3 backend on calling create crypto checkout order. This is to identify the request payload approved order created by Application's backend.
Token buy flow where destination address is Game's wallet address