Apple Pay
The Apple Pay API allows you register your application's top-level domain or subdomain.
Register Domain
Register a top-level domain or subdomain for your Apple Pay integration.
Domain Registration
This endpoint can only be called with one domain or subdomain at a time.
Headers
Set value to Bearer SECRET_KEY
Set value to application/json
Body Parameters
Domain name to be registered
1#!/bin/sh2url="https://api.paystack.co/apple-pay/domain"3authorization="Authorization: Bearer YOUR_SECRET_KEY"4content_type="Content-Type: application/json"5data='{6 "domainName": "example.com"7}'89curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST
1{2 "status": true,3 "message": "Domain successfully registered on Apple Pay"4}
List Domains
Lists all registered domains on your integration. Returns an empty array if no domains have been added.
Headers
Set value to Bearer SECRET_KEY
Query Parameters
Flag to enable cursor pagination on the endpoint
A cursor that indicates your place in the list. It can be used to fetch the next page of the list
A cursor that indicates your place in the list. It should be used to fetch the previous page of the list after an intial next request
1#!/bin/sh2url="https://api.paystack.co/apple-pay/domain"3authorization="Authorization: Bearer YOUR_SECRET_KEY"45curl "$url" -H "$authorization" -X GET
1{2 "status": true,3 "message": "Apple Pay registered domains retrieved",4 "data": {5 "domainNames": [6 "example.com"7 ]8 }9}
Unregister Domain
Unregister a top-level domain or subdomain previously used for your Apple Pay integration.
Headers
Set value to Bearer SECRET_KEY
Body Parameters
Domain name to be registered
1#!/bin/sh2url="https://api.paystack.co/apple-pay/domain"3authorization="Authorization: Bearer YOUR_SECRET_KEY"4content_type="Content-Type: application/json"5data='{6 "domainName": "example.com"7}'89curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X DELETE
1{2 "status": true,3 "message": "Domain successfully unregistered on Apple Pay"4}