using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.DigitalWallets.ListAsync();
// handle response{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_account_id": "<string>",
"provider": "apple",
"merchant_name": "<string>",
"domain_names": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"type": "digital-wallet",
"merchant_display_name": "ACME",
"merchant_url": "https://example.com",
"merchant_country_code": "US",
"active_certificate_count": 0,
"pending_certificate_count": 0,
"expired_certificate_count": 0,
"fields": {
"digital_payment_application_id": "8faebf73-5b43-4514-b170-cbfb50c99fff",
"digital_payment_application_name": "ACME"
}
}
]
}List configured digital wallets.
using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.DigitalWallets.ListAsync();
// handle response{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_account_id": "<string>",
"provider": "apple",
"merchant_name": "<string>",
"domain_names": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"type": "digital-wallet",
"merchant_display_name": "ACME",
"merchant_url": "https://example.com",
"merchant_country_code": "US",
"active_certificate_count": 0,
"pending_certificate_count": 0,
"expired_certificate_count": 0,
"fields": {
"digital_payment_application_id": "8faebf73-5b43-4514-b170-cbfb50c99fff",
"digital_payment_application_name": "ACME"
}
}
]
}digital-wallets.read scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the merchant account to use for this request.
"default"
Successful Response
A list of items returned for this request.
Show child attributes
Was this page helpful?