Pay3 React Native SDK
Transactions
2min
pay3 getcheckoutwebview(checkoutobj) the application can use getcheckoutwebview , which returns a webview component from react native webview npm package 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 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 partner service during the fiat checkout flow payment partner may send mails to user updating them status of their transaction payment 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 usermessage (type string) short meaningful name of the asset user is about to purchase const checkoutobj = { "requestid" requestid, "user" { "email" "user\@email address" }, "payment" \[ { "amount" "20 25", "name" "brl bz" }, { "amount" "5 05", "name" "usd usa" }, { "amount" "4 00", "name" "gbp gb" } ], "usermessage" "sample message" }; // opens pay3 buy modal return ( <> {pay3checkoutvisiblestate? pay3 getcheckoutwebview(checkoutobj) null} \</> );