Accept EasyPaisa wallet payments through the Web, React Native, Android, Flutter, and Swift SDKs. Use easypaisa-wallet as the PaymentIntent payment_method_types value.
Element by platform
Prepare the merchant account
Obtain the applicable EasyPaisa credentials and complete its provider requirements through the XPay Go-Live Guide. Add the credentials to the EasyPaisa gateway configured for the merchant in the XPay portal.
EasyPaisa doesn't support the XPay test environment. Plan provider testing according to the environment and credentials supplied for the merchant's EasyPaisa integration.
Configure the EasyPaisa refund public key
EasyPaisa requires the XPay refund public key before the merchant can process EasyPaisa refunds.
- Create a file named
easypaisa-refund-public-key.pem. - Copy the complete public key below into the file.
- Sign in to the EasyPaisa portal.
- Open Account Settings → Public Key.
- Upload the file and save the configuration.
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwlDFu56oIBMHAEKKxy3kuo/dAgF/74uM5BgpPUavuKN7/dYsWU3bAdnHK4+t1pHstB5Sd1XfCiq6WowE+WU+M91+Z/GCe/S22YqIRBo72QVu9owNOmt99+p01jFehYKfXDYx7uUZD1z/h0GhAYUK5bTSKW7lEp4KZFxIOZH09EYkVZS1lVB9UEyFZHWOyFGCcVe1xVhsj9bqWq/pk3nJtMq6/2iAJfu12LG9kgBhtMTIPDQtL9G9ASkJlBEFr+DBEE0OzWS+diW5io8algnAvOPkUtDZTJ9e5bPYbuQfEweezWN7MDdNvbB6VS6DshhgVjUmcyd5KiclWSnCMfXrvQIDAQABIntegrate EasyPaisa
Create the PaymentIntent on the merchant backend, render the platform-specific wallet element, and confirm it using the same method signature documented by that SDK. The element collects the required EasyPaisa customer input; keep those values inside the XPay-controlled form.
The synchronous result and PAYMENT_INTENT_NOTIFICATION contract are shared across gateways. See Payment methods for the platform-specific wrapper.