
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
A unofficial myclear ruby gem.
Myclear official document: https://fpxexchange.myclear.org.my:8443/MerchantIntegrationKit/
note:Password is required when accessing the official document, please go to Myclear for the password.
Add this line to your application's Gemfile:
gem 'myclear'
or
gem 'myclear', github: 'lanceyb/myclear'
And then execute:
$ bundle
Or install it yourself as:
$ gem install myclear
Myclear.fpx_version = '7.0'
Myclear.seller_exchange_id = 'YOUR SELLER EXCHANGE ID'
Myclear.seller_id = 'YOUR SELLER ID'
Myclear.private_key = 'YOUR RSA PRIVATE KEY'
Myclear.fpx_certification = 'THE FPX CERTIFICATION'
# Myclear.debug_mode = true # Enable parameter check. Default is true.
# Myclear.fpx_standby_certification = 'THE STANDBY FPX CERTIFICATIO
eg:
if Rails.env.production?
Myclear.fpx_version = '7.0'
Myclear.seller_exchange_id = 'YOUR SELLER EXCHANGE ID'
Myclear.seller_id = 'YOUR SELLER ID'
Myclear.private_key = 'YOUR RSA PRIVATE KEY'
Myclear.fpx_certification = 'THE FPX CERTIFICATION'
else
Myclear.fpx_version = '7.0'
Myclear.seller_exchange_id = 'EX00000000'
Myclear.seller_id = 'SE00000000'
Myclear.private_key = File.read(File.expand_path('./EX00000000.key', Rails.root))
Myclear.fpx_certification = File.read(File.expand_path('./fpxuat.cer', Rails.root))
end
Myclear::Service.bank_list_enquiry
Myclear::Service.authorization_request_params({ARGUMENTS})
Myclear::Service.authorization_request_params({
fpx_msgToken: '01',
fpx_sellerExOrderNo: 'EXORDERNO0000',
fpx_sellerTxnTime: '20170817140102',
fpx_sellerOrderNo: 'ORDERNO000000',
fpx_txnCurrency: 'MYR',
fpx_txnAmount: '1.00',
fpx_buyerEmail: 'test@example.com',
fpx_buyerName: '',
fpx_buyerBankId: 'TEST0021',
fpx_buyerBankBranch: 'SBI BANK A',
fpx_buyerAccNo: '',
fpx_buyerId: '',
fpx_makerName: '',
fpx_buyerIban: '',
fpx_productDesc: '1 goods'
})
Key | Allow Blank | Description |
---|---|---|
fpx_msgToken | N | Indicate business model. 01 - B2C / 02 - B2B1 / 03 - B2B2 |
fpx_sellerExOrderNo | N | Unique ID generate by Exchange for each transaction originating form an Exchange. Not Supported: Ampersan (&) and Apostrophe ('). |
fpx_sellerTxnTime | N | Date and time transaction originated from Merchant. YYYYMMDDHHmmSS (in MYT). |
fpx_sellerOrderNo | N | Order number generated by Merchant. Not Supported: Ampersan (&) and Apostrophe ('). |
fpx_txnCurrency | N | Transaction currency. Default value = MYR |
fpx_txnAmount | N | Total amount. |
fpx_buyerEmail | Y | Buyer email address. Allow blank. |
fpx_buyerName | Y | Buyer name. Allow blank. |
fpx_buyerBankId | N | Provided by FPX - ties to Bank that Buyer has an account in. |
fpx_buyerBankBranch | N | Bank's branch code that Buyer opened his account. Not Supported: Slash(/), Ampesand(&) and Apostrophe('). |
fpx_buyerAccNo | Y | Buyer account number |
fpx_buyerId | Y | Buyer identification number. Not Supported: Slash(/), Ampersand(&) and Apostrophe('). |
fpx_makerName | Y | Buyer representative (Maker) who initiate the transaction. |
pfx_buyerIban | Y | Buyer IBAN |
fpx_productDesc | Y | Product Description |
Myclear::Service.authorization_enquiry({ARGUMENTS})
Myclear::Service.authorization_enquiry({
fpx_msgToken: '01',
fpx_sellerExOrderNo: 'EXORDERNO0000',
fpx_sellerTxnTime: '20170817140102',
fpx_sellerOrderNo: 'ORDERNO000000',
fpx_txnCurrency: 'MYR',
fpx_txnAmount: '1.00',
fpx_buyerEmail: 'test@example.com',
fpx_buyerName: '',
fpx_buyerBankId: 'TEST0021',
fpx_buyerBankBranch: 'SBI BANK A',
fpx_buyerAccNo: '',
fpx_buyerId: '',
fpx_makerName: '',
fpx_buyerIban: '',
fpx_productDesc: '1 goods'
})
note : 请求AE接口的参数,保持与AR时一致
Key | Allow Blank | Description |
---|---|---|
fpx_msgToken | N | Indicate business model. 01 - B2C / 02 - B2B1 / 03 - B2B2 |
fpx_sellerExOrderNo | N | Unique ID generate by Exchange for each transaction originating form an Exchange. Not Supported: Ampersan (&) and Apostrophe ('). |
fpx_sellerTxnTime | N | Date and time transaction originated from Merchant. YYYYMMDDHHmmSS (in MYT). |
fpx_sellerOrderNo | N | Order number generated by Merchant. Not Supported: Ampersan (&) and Apostrophe ('). |
fpx_txnCurrency | N | Transaction currency. Default value = MYR |
fpx_txnAmount | N | Total amount. |
fpx_buyerEmail | Y | Buyer email address. Allow blank. |
fpx_buyerName | Y | Buyer name. Allow blank. |
fpx_buyerBankId | N | Provided by FPX - ties to Bank that Buyer has an account in. |
fpx_buyerBankBranch | N | Bank's branch code that Buyer opened his account. Not Supported: Slash(/), Ampesand(&) and Apostrophe('). |
fpx_buyerAccNo | Y | Buyer account number |
fpx_buyerId | Y | Buyer identification number. Not Supported: Slash(/), Ampersand(&) and Apostrophe('). |
fpx_makerName | Y | Buyer representative (Maker) who initiate the transaction. |
pfx_buyerIban | Y | Buyer IBAN |
fpx_productDesc | Y | Product Description |
Myclear::Service.verify_params(params)
Bug reports and pull requests are welcome.
Please write unit test with your code if necessary.
FAQs
Unknown package
We found that myclear demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.