Skip to content

Commit 7537a78

Browse files
committed
reviewed PR after peer comments
1 parent e7abd16 commit 7537a78

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

src/data/navigation/sections/graphql.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,14 @@ module.exports = [
12491249
title: "Minicart",
12501250
path: "/graphql/payment-services-extension/workflows/minicart.md",
12511251
},
1252+
{
1253+
title: "Vaulting a card during a checkout authorization",
1254+
path: "/graphql/payment-services-extension/workflows/vault-with-purchase.md",
1255+
},
1256+
{
1257+
title: "Vaulting a credit card without a purchase",
1258+
path: "/graphql/payment-services-extension/workflows/vault-without-purchase.md",
1259+
},
12521260
{
12531261
title: "Vaulted card",
12541262
path: "/graphql/payment-services-extension/workflows/vaulted-card.md",

src/pages/graphql/payment-services-extension/workflows/vault-with-purchase.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ These steps describe the flow of requests and responses required to [vault a cre
1212

1313
The following conditions must be true to vault a card during checkout:
1414

15-
* The customer needs to be logged in.
1615
* You must have installed [Payment Services for Adobe Commerce](https://commercemarketplace.adobe.com/magento-payment-services.html) 2.10.0 or higher.
16+
* The customer must be logged in.
1717

1818
## Vault during checkout workflow
1919

@@ -27,7 +27,7 @@ The following conditions must be true to vault a card during checkout:
2727

2828
1. Adobe Commerce returns a `Cart` object.
2929

30-
1. Run the [`createPaymentOrder`](../../payment-services-extension/mutations/create-payment-order.md) mutation with `vaultIntent`set to `true` to begin the authorization process.
30+
1. Run the [`createPaymentOrder`](../../payment-services-extension/mutations/create-payment-order.md) mutation with `vaultIntent` set to `true` to begin the authorization process.
3131

3232
1. Commerce forwards the request to PayPal.
3333

@@ -93,7 +93,7 @@ mutation {
9393
"data": {
9494
"setPaymentMethodOnCart": {
9595
"cart": {
96-
"id": "r8TKHa58b7Y8VaZHLyABNxrEdS8hJJTZ",
96+
"id": "uocGxUi5H97XFAMhY3s66q4aFYG3Bmdr",
9797
"selected_payment_method": {
9898
"code": "payment_services_paypal_hosted_fields"
9999
}

src/pages/graphql/payment-services-extension/workflows/vault-without-purchase.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ These steps describe the flow of requests and responses required to [vault a pay
2020

2121
1. Run the [`createVaultCardSetupToken`](../../payment-services-extension/mutations/create-vault-card-setup-token.md) mutation to create a temporary `setup_token` associated to the given payment source.
2222

23-
1. Commerce forwards token request to Paypal.
23+
1. Commerce forwards token request to PayPal.
2424

2525
1. PayPal returns the temporary `setup_token` to Commerce.
2626

@@ -40,6 +40,6 @@ These steps describe the flow of requests and responses required to [vault a pay
4040

4141
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 updates the setup token with payment details.
4242

43-
See [Paypal SDK developer documentation](https://developer.paypal.com/docs/multiparty/checkout/save-payment-methods/purchase-later/js-sdk/cards/) for more information.
43+
See [PayPal SDK developer documentation](https://developer.paypal.com/docs/multiparty/checkout/save-payment-methods/purchase-later/js-sdk/cards/) for more information.
4444

4545
To run the `createVaultCardPaymentToken` mutation, use the `setup_token` generated by the [`createVaultCardSetupToken`](../mutations/create-vault-card-setup-token.md) mutation.

0 commit comments

Comments
 (0)