Apple pay
ApplePayClient
Bases: BaseAPIClient
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/sub_clients/sync_clients/apple_pay.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
|
get_domains(use_cursor=False, next_=None, previous=None, alternate_model_class=None)
Fetches all registered domains on your integration.
Note * This feature is available to businesses in all markets except South Africa.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
use_cursor
|
bool
|
|
False
|
next_
|
str | None
|
|
None
|
previous
|
str | None
|
|
None
|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[ApplePayDomains] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/apple_pay.py
register_domain(domain_name, alternate_model_class=None)
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 |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[None] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/apple_pay.py
unregister_domain(domain_name, alternate_model_class=None)
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 |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Note * This feature is available to businesses in all markets except South Africa.
Returns:
Type | Description |
---|---|
Response[None] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/apple_pay.py
AsyncApplePayClient
Bases: BaseAsyncAPIClient
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 sub_clients doc
Source code in src/pypaystack2/sub_clients/async_clients/apple_pay.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
|
get_domains(use_cursor=False, next_=None, previous=None, alternate_model_class=None)
async
Fetches all registered domains on your integration.
Note * This feature is available to businesses in all markets except South Africa.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
use_cursor
|
bool
|
|
False
|
next_
|
str | None
|
|
None
|
previous
|
str | None
|
|
None
|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[ApplePayDomains] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/async_clients/apple_pay.py
register_domain(domain_name, alternate_model_class=None)
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 |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[None] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/async_clients/apple_pay.py
unregister_domain(domain_name, alternate_model_class=None)
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 |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Note * This feature is available to businesses in all markets except South Africa.
Returns: A pydantic model containing the response gotten from paystack's server.