Skip to main content

Overview

Payaza supports Apple Pay and Google Pay as collection channels. You initiate the payment from your server using the mobile payment API which generates a payment URL for the customer to access, and the customer authorizes the charge through their device’s native wallet experience.
Apple Pay works on Safari (iOS and macOS). Google Pay works on Chrome and Android browsers. Always provide a fallback payment method for customers who do not have a supported wallet configured on their device.

Key Requirements

Use your public API key encoded in Base64 for all wallet payment requests. See the Authentication guide for setup instructions.
Set these headers on every request:
Make sure your Collection webhook URL is saved on the dashboard. See the Webhooks guide for setup instructions.

Endpoints


How it works

1

Initiate the payment

Your server calls the Initiate endpoint with the customer details, amount, and payment_option set to "APPLEPAY" or "GOOGLEPAY" which generates a payment URL.
2

Customer authorizes

The customer views the payment URL and sees the native Apple Pay or Google Pay checkout modal on their device and authenticates with Face ID, Touch ID, or their device PIN.
3

Receive the outcome

Payaza fires a webhook to your configured URL when the payment completes or fails. Use the Transaction Status Query endpoint as a fallback if a webhook is not received in time.

Step 1 — Initiate the payment

Request parameters

Sample response


Step 2 — Query transaction status

Use this endpoint to confirm the final outcome of a payment. Call it after initiating, or as a fallback if a webhook is not received within your expected timeout.
cURL

Errors

See the full Errors reference for more detail.

What’s next

Card Collections

Accept card payments directly via the API.

Webhooks

Receive real-time payment notifications from Payaza.