Skip to main content

Tokenization Finalize — JazzCash

Once the payment cycle is complete on the hosted page, the customer is redirected to the return URL provided in the GET call. On the return URL, call the Finalize API to show the final payment status to the customer.


Endpoint

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

Headers

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

Request Parameters

ParameterRequiredTypeLengthDescription
merchantIdYesString7A unique ID provided by Simpaisa to represent each merchant
operatorIdYesString6Payment channel ID
orderIdYesString6Generated by the merchant to track 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/finalize' \
--header 'Content-Type: application/json' \
--header 'mode: payin' \
--header 'region: PK' \
--header 'operatorId: 100008' \
--header 'version: 3.0' \
--data '{
"merchantId": "xxxx",
"operatorId": "100008",
"orderId": "xxxx"
}'
{
"merchantId": "xxxx",
"operatorId": "100008",
"orderId": "xxxx"
}
info

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