Bkash Pay Extension - Integrate BKash Merchant Payment Flow
An extension to make bKash merchant payment from your android application. Just import the extension and setup your credentials.
What is bKash?
bKash is a mobile financial service in Bangladesh. As a mobile financial service (MFS) provider in Bangladesh through bKash users can deposit money into their mobile accounts and then access a range of services, in particular transferring and receiving money domestically, making payments. Services like mobile recharge or paying utility bills. A user can receive money from overseas on bKash.
Extension Properties
You’ve to set your PHP host URL here. I’ll provide you PHP files with extension.
Launch Payment
Call this function to launch payment flow.
-
amount
- Enter amount for run payment flow. (Should be equal or greater than 1) -
reference
- Enter reference id for payment. (It may empty)
PaymentSuccess
event will be triggered when payment success.
-
paymentId
- Returns the payment id. -
transactionId
- Returns the transaction id of payment. -
amount
- Returns the amount of payment. -
paymentTime
- Returns the time of payment. -
customerNumber
- Returns the mobile number of customer. -
invoiceNumber
- Returns the invoice number of payment. -
reference
- Returns the reference id of payment. (Return 1 if given id was empty)
PaymentFailed
event will be triggered when payment is failed.
-
error Code
- Returns error code. -
message
- Returns error message as json string. (It may return only string also)
PaymentCanceled
event will be triggered when payment is canceled by user.
Query Transaction
Run query about transaction with transaction id.
-
transactioId
- Enter transaction id to run query for it.
QuerySuccess
event will be triggered when query is successful for given transaction id.
-
transactionId
- Returns the transaction id. -
amount
- Returns the amount for the transaction. -
customerNumber
- Returns the mobile number of customer. -
completeTime
- Returns the payment complete time. -
initiationTime
- Returns the payment initiation time. -
organizationShortCode
- Returns the short code of organization.
QueryFailed
event will be triggered when failed to run query for given transaction id.
-
error Code
- Returns error code. -
message
- Returns error message as JSON string. (It may return only string also)
Credit
PHP Developers: @RDR_SA & @Riad_Developer
Thanks for your helps…
PHP is not more needed with the updated aix. I’ll share new blocks soon.
Extension specifications:
Size: 40.1 KB
Version: 1.0.0
Released On: 24 June 2021 (GMT+06:00)
Updated On: 12 November 2023 (GMT+06:00)
Payment methods: Bkash | Nagad | Bank