Skip to main content

Tokenization Verify Easypaisa

Once the payment is initiated, the mobile wallet triggers an OTP on the customer's account, leading to a flash-message or in-app approval. If the customer approves, the amount is deducted from their account.


Endpoint

MethodPOST
Path/v2/wallets/transaction/verify
Sandboxhttps://sandbox.simpaisa.com/v2/wallets/transaction/verify
Productionhttps://payin.simpaisa.com/v2/wallets/transaction/verify

Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
modeYespayin
regionYesPK
operatorIdYes100007
versionYes3.0

Request Parameters

ParameterRequiredTypeLengthDescription
merchantIdYesString7A unique ID provided by Simpaisa to represent each merchant
operatorIdYesString6Payment channel ID
amountYesStringAmount to charge
userKeyYesStringA key generated by the merchant to track the transaction
transactionTypeYesString2Payment type — one-time charge, recurring, or tokenized
msisdnYesString10Customer contact number linked to the wallet account
productReferenceYesStringA brief description of the product being sold
otpYesString10A one-time password sent via SMS to validate the transaction

Response Parameters

ParameterDescription
statusA Simpaisa response code indicating whether your request succeeded or failed
messageA human-readable explanation corresponding to the status code
msisdnCustomer contact number linked to the wallet account
operatorIdPayment channel ID
merchantIdA unique ID provided by Simpaisa to represent each merchant
sourceIdA Simpaisa-issued token referencing the customer's saved wallet credentials, used in follow-up tokenized payments to charge the account without re-authentication
transactionIdUniquely generated ID to track every transaction

Sample

curl --location 'https://sandbox.simpaisa.com/v2/wallets/transaction/verify' \
--header 'Content-Type: application/json' \
--header 'mode: payin' \
--header 'region: PK' \
--header 'operatorId: 100007' \
--header 'version: 3.0' \
--data '{
"merchantId": "2000XXX",
"operatorId": "100007",
"amount": "100",
"userKey": "XXXX",
"transactionType": "8",
"msisdn": "3XXXXXX",
"productReference": "xxxx",
"otp": "XXXX"
}'
{
"merchantId": "2000XXX",
"operatorId": "10000X",
"amount": "100",
"userKey": "XXXX",
"transactionType": "8",
"msisdn": "3XXXXXX",
"productReference": "xxxx",
"otp": "XXXX"
}
info

The sourceId (SP token) is used for Direct Charge or Delink of the customer's account.