A list of all methods in the DigitalWalletService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_apple_pay_session | Retrieve the details of an Apple Pay payment session. Each payment that uses Apple Pay has a unique session. Activating Apple Pay is a prerequisite. |
Retrieve the details of an Apple Pay payment session. Each payment that uses Apple Pay has a unique session. Activating Apple Pay is a prerequisite.
- HTTP Method:
POST
- Endpoint:
/v1/digital_wallets/session/apple_pay
Parameters
Name | Type | Required | Description |
---|---|---|---|
request_body | ApplePayObject | ✅ | The request body. |
access_key | str | ✅ | Unique access key provided by Rapyd for each authorized user. |
content_type | str | ✅ | Indicates that the data appears in JSON format. Set to application/json. |
salt | str | ✅ | Random string. Recommended length: 8-16 characters. |
signature | str | ✅ | Signature calculated for each request individually. See Request Signatures. |
timestamp | str | ✅ | Timestamp for the request, in Unix time (seconds). |
idempotency | str | ❌ | A unique key that prevents the platform from creating the same object twice. |
Return Type
InlineResponse200_33
Example Usage Code Snippet
from rapyd_sdk import RapydSdk, Environment
from rapyd_sdk.models import ApplePayObject
sdk = RapydSdk(
base_url=Environment.DEFAULT.value,
timeout=10000
)
request_body = ApplePayObject(
display_name="display_name",
initiative_context="initiative_context"
)
result = sdk.digital_wallet.get_apple_pay_session(
request_body=request_body,
access_key="access_key",
content_type="Content-Type",
salt="salt",
signature="signature",
timestamp="timestamp",
idempotency="idempotency"
)
print(result)