npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@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 sync

API

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 |