Apple pay
ApplePay
Bases: BaseAPI
Provides a wrapper for paystack Apple Pay API
The Apple Pay API allows you to register your application's top-level domain or subdomain. see https://paystack.com/docs/api/apple-pay/
Note This feature is available to businesses in all markets except South Africa.
Source code in src/pypaystack2/api/apple_pay.py
get_domains(use_cursor=False, next=None, previous=None)
Fetches all registered domains on your integration.
Note * This feature is available to businesses in all markets except South Africa.
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Response
|
An empty list in the data if no domains have been added. |
Source code in src/pypaystack2/api/apple_pay.py
register_domain(domain_name)
Register a top-level domain or subdomain for your Apple Pay integration.
Note * This method can only be called with one domain or subdomain at a time. * This feature is available to businesses in all markets except South Africa.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
domain_name
|
str
|
Domain name to be registered. |
required |
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/apple_pay.py
unregister_domain(domain_name)
Unregister a top-level domain or subdomain previously used for your Apple Pay integration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
domain_name
|
str
|
Domain name to be unregistered |
required |
Note * This feature is available to businesses in all markets except South Africa.
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/apple_pay.py
AsyncApplePay
Bases: BaseAsyncAPI
Provides a wrapper for paystack Apple Pay API
The Apple Pay API allows you to register your application's top-level domain or subdomain. Visit paystack api doc
Source code in src/pypaystack2/api/apple_pay.py
get_domains(use_cursor=False, next=None, previous=None)
async
Fetches all registered domains on your integration.
Note * This feature is available to businesses in all markets except South Africa.
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Response
|
An empty list in the data if no domains have been added. |
Source code in src/pypaystack2/api/apple_pay.py
register_domain(domain_name)
async
Register a top-level domain or subdomain for your Apple Pay integration.
This method can only be called with one domain or subdomain at a time.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
domain_name
|
str
|
Domain name to be registered. |
required |
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/apple_pay.py
unregister_domain(domain_name)
async
Unregister a top-level domain or subdomain previously used for your Apple Pay integration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
domain_name
|
str
|
Domain name to be unregistered |
required |
Note * This feature is available to businesses in all markets except South Africa.
Returns: A named tuple containing the response gotten from paystack's server.