React Native SDK
React Native SDK for NeoX Payment Gateway
Use
Methods
Method | Description |
---|---|
initialize | Initialize the necessary configurations for the SDK and UI |
Example
Params in initialize function
Parammetter | Data Type | Default Value | Description |
---|---|---|---|
neo_MerchantCode | String | Merchant code is provided by NeoX | |
neo_Currency | String | VND | Transaction currency, VND as default |
neo_Locale | String | vi | Language will display on the checkout page. Support: “vi”, “en”. |
neo_Version | string | 1 | Payment gateway version, “1” as default |
neo_PaymentMethod | String | ["WALLET", "ATM", "CC", "QR"] | Allows to choose to display direct or list payment channels. If this field is not transmitted, all channels will be displayed. |
neo_Amount | number | Payment amount | |
neo_MerchantTxnID | String | Unique - Transaction ID is provided by merchant | |
neo_OrderID | String | Order ID | |
neo_PaymentBaseUrl | String | Environment |
Callback
Event | Description |
---|---|
onSuccess | The event occurs when payment is successful. |
onFailure | The event occurs when payment fails. |
Callback data from onSuccess and onFailure
Parameter | Data Type | Description |
---|---|---|
neo_MerchantCode | string | Merchant code is provided by NeoX |
neo_Currency | string | Transaction currency, VND as default |
neo_Locale | string | Language will display on the checkout page. Support: “vi”, “en”. |
neo_Version | string | Payment gateway version, “1” as default |
neo_Command | string | “PAY” as default |
neo_Amount | string | Payment amount |
neo_MerchantTxnID | string | Unique - Transaction ID is provided by merchant |
neo_OrderID | string | Oder ID |
neo_OrderInfo | string | Oder Information |
neo_TransactionID | string | Unique - Transaction ID is generated by the NeoX system, for reconciling. |
neo_ResponseCode | string | The error code is returned by NeoX, indicates the transaction result. |
neo_ResponseMsg | string | Error description. |
neo_CustomerID | string | The customer ID on the merchant system. |
neo_ResponseData | string | The data response of customer's payment. |
neo_SecureHash | string | Use SHA256 to hash the above parameters (sort the key by Alphabet order) + Secret Key (will be provided by NeoX after actual integration) |
Last updated