Skip to main content

Tokenization

Save a customer's wallet credentials as a source ID (SP token) and charge them on a schedule without re-authentication. Tokenization is available on Easypaisa and JazzCash only.


Tokenization Flow

Tokenization makes scheduled payments more robust and gives merchants more control over package design and recurring charges. The sourceId (SP token) maps to the customer's wallet account details in encrypted form, enabling future charges per your defined schedule.


APIs

StepAPIEasypaisaJazzCash
1. Start tokenizationInitiateREST Initiate (transactionType = 8)Hosted page (GET URL)
2. Verify / completeVerify or FinalizeREST Verify with OTPFinalize after redirect
3. Recurring chargeDirect Charge
4. Remove tokenDelink

Transaction Type

ValueMeaning
8Tokenization / recurring consent

SourceId (SP Token)

After successful tokenization, the Verify or Finalize response includes a sourceId:

"sourceId": "sp_xxxxxxxxxxxxxxxx"

Store this securely. Use it for:

warning

Direct Charge cannot run without a valid sourceId. The customer must complete the initial tokenization consent flow first.


Wallet Comparison

EasypaisaJazzCash
operatorId100007100008
Initial flowREST Initiate → Verify (OTP + MPIN)Hosted page → OTP → Finalize
amountRequiredUses amount on hosted page
Finalize APINot requiredRequired after redirect

GuideDescription
InitiateStart Easypaisa tokenization
VerifyComplete Easypaisa tokenization
FinalizeComplete JazzCash tokenization
Direct ChargeCharge a saved wallet
DelinkRemove saved credentials