@aigens/aigens-sdk-fiuu-payments
v5.0.1
Published
Aigens SDK Fiuu-payments
Downloads
12
Readme
aigens-sdk-utils
Aigens SDK Fiuu Payments
google pay transactionResult Json
=========================================
Sample transaction result in JSON string:
=========================================
{
"StatCode": "00",
"StatName": "captured",
"TranID": "30959687",
"Amount": "1.10",
"Domain": "",
"VrfKey": "",
"Channel": "credit",
"OrderID": "1741853136969",
"Currency": "MYR",
"ErrorCode": null,
"ErrorDesc": null,
"ProcessorResponseCode": "000",
"ProcessorCVVResponse": null,
"SchemeTransactionID": "123456",
"MerchantAdviceCode": null,
"ECI": null,
"3DSVersion": "2.2",
"ACSTransactionID": null,
"3DSTransactionID": null
}
Parameter and meaning:
"StatCode" - "00" for Success, "11" for Failed, "22" for Pending.
"Amount" - The transaction amount
"OrderID" - The transaction order ID
"Channel" - The card type use
"TranID" - The transaction ID generated by Fiuu
"Domain" - Your Merchant ID
"VrfKey" - You can verify payment using this formula -> VrfKey = md5(Amount+secret_key+Domain+TranID+StatCode)
* Note 1: secret_key = Your account Secret Key in https://portal.fiuu.com/
* Note 2: The other parameters and values not described above are for recorded purpose only
=====================================
* Sample error result in JSON string:
=====================================
{
"status":false,
"error_code":"P03",
"error_desc":"Your payment info format not correct."
}
{
"error_code" = A01;
"error_desc" = "Fail to detokenize Google Pay Token given";
status = 0;
}
{
"status": false,
"error_code": null,
"error_desc": "Your transaction has been denied due to merchant account issue."
}
Error info:
Error P03 - Your payment info format not correct
1) Need makesure all required parameters filled correctly.
2) Need set mp_extended_vcode = true if enabled extended Verify Payment.
Error A01 - "Fail to detokenize Google Pay Token given" - Error starting a payment process due to several possible reasons, please contact Fiuu support if the error unresolved.
1) Misconfigure GooglePay setup
2) API credentials (username, password, merchant id, verify key)
3) Payment Server Offline.
"Your transaction has been denied due to merchant account issue."
OR
"This merchant is having trouble accepting your payment at the moment.Try installing the latest version of the merchant's app or use a different payment method. [OR_BIBED_13]"
1) Need check mp_sandbox_mode, mp_merchant_ID & mp_verification_key
2) mp_sandbox_mode = true , need use Sandbox mp_merchant_ID & mp_verification_key
3) mp_sandbox_mode = false or if did not send mp_sandbox_mode , need use Production/Dev mp_merchant_ID & mp_verification_key
4) Check Requirements for Production Environment notes for production/dev testing
Install
npm install @aigens/aigens-sdk-adyen-payments
npx cap syncAPI
appPayment(...)
appPayment(options: FiuuPaymentOptions) => Promise<{ transactionResult?: string; }>| Param | Type |
| ------------- | ----------------------------------------------------------------- |
| options | FiuuPaymentOptions |
Returns: Promise<{ transactionResult?: string; }>
Interfaces
FiuuPaymentOptions
| Prop | Type |
| ----------------------------- | --------------------- |
| mp_merchant_ID | string |
| mp_verification_key | string |
| mp_amount | string |
| mp_order_ID | string |
| mp_currency | string |
| mp_country | string |
| mp_sandbox_mode | boolean |
| mp_bill_description | string |
| mp_bill_name | string |
| mp_bill_email | string |
| mp_bill_mobile | string |
| mp_company | string |
| mp_gpay_channel | string[] |
| mp_closebutton_display | boolean |
| mp_enable_fullscreen | boolean |
| mp_extended_vcode | boolean |
| mp_hide_googlepay | boolean |
| appleMerchantIdentifier | string |
