Skip to content

Commit

Permalink
Reviewed changes after peer review
Browse files Browse the repository at this point in the history
  • Loading branch information
danidelcar committed Dec 17, 2024
1 parent 7878bab commit 87b0b19
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 6 deletions.
30 changes: 30 additions & 0 deletions src/data/navigation/sections/graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,36 @@ module.exports = [
},
],
},
{
title: "Vault",
path: "/graphql/schema/vault/",
pages: [
{
title: "Queries",
path: "/graphql/schema/vault/queries/",
pages: [
{
title: "getVaultConfig",
path: "/graphql/schema/vault/queries/get-vault-config/",
},
],
},
{
title: "Mutations",
path: "/graphql/schema/vault/mutations/",
pages: [
{
title: "createVaultCardSetupToken",
path: "/graphql/schema/vault/mutations/create-vault-card-setup-token/",
},
{
title: "createVaultCardPaymentToken",
path: "/graphql/schema/vault/mutations/create-vault-card-payment-token/",
},
],
},
],
},
{
title: "Wish list",
path: "/graphql/schema/wishlist/",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/graphql/schema/vault/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ This functionality is available only if you have installed [Payment Services for

The vault-related changes to the schema allow you to generate stored payment details and to modify a payment tokens.

Once the customer has vaulted a payment method, they no longerneed to re-enter or authenticate their payment information.
Once the customer has vaulted a payment method, they no longer need to re-enter or authenticate their payment information.

These endpoints can be used to vault stored payment details without a purchase, but it is possible to [vault a payment method during checkout](https://developer.adobe.com/commerce/webapi/graphql/payment-services/vault/), see the [`customer-payment-tokens`](https://developer.adobe.com/commerce/webapi/graphql/schema/checkout/queries/customer-payment-tokens/) query for more information.
These mutations can be used to [vault stored payment details without a purchase](https://experienceleague.adobe.com/en/docs/commerce-merchant-services/payment-services/payments-checkout/vaulting#vaulting-without-purchase), but it is possible to [vault a payment method during checkout](../payment-services/vault/), see the [`customerPaymentTokens`](../checkout/queries/customer-payment-tokens/) query for more information.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This mutation is available only if you have installed [Payment Services for Adob

The `createVaultCardPaymentToken` mutation creates a permanent `vault_token_id` and associates an optional card description, visible in the storefront.

To run the `createVaultCardPaymentToken` mutation, you need the `setup_token` generated with the [`createVaultCardSetupToken`](create-vault-card-setup-token/) mutation.
To run the `createVaultCardPaymentToken` mutation, you need the `setup_token` generated with the [`createVaultCardSetupToken`](create-vault-card-setup-token.md) mutation.

## Syntax

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This mutation is available only if you have installed [Payment Services for Adob

The `createVaultCardSetupToken` mutation creates a temporary `setup_token` associated to the given payment source.

Use this token to create a permanent token with the `createVaultCardPaymentToken` mutation. The permanent token represents a payment method that is saved to the customer's vault.
Use this token to create a permanent token with the [`createVaultCardPaymentToken`](create-vault-card-payment-token.md) mutation. The permanent token represents a payment method that is saved to the customer's vault.

The setup token is generated with an empty card number in the `payment_source` object purposefully. The PayPal SDK, in conjunction with hosted fields or credit cards field components, securely update the setup token with payment details.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ query {
}
```

For now, only `credit_card` is supported with the `getVaultConfig` query.

## Output attributes

The `VaultConfigOutput` object contains the following attribute:
Expand Down

0 comments on commit 87b0b19

Please sign in to comment.