Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

added error coverage for payflowtoken mutation #8454

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/guides/v2.3/graphql/mutations/create-payflow-pro-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,14 @@ Attribute | Data Type | Description
`result_code` | Int! | The **RESULT** returned by PayPal. A value of `0` indicates the transaction was approved
`secure_token` | String! | Secure token generated by PayPal
`secure_token_id` | String! | Secure token ID generated by PayPal

## Errors

Error | Description
--- | ---
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` table.
`Field PayflowProTokenInput.cart_id of required type String! was not provided.` | You must specify the `cart_id` attribute.
`Field PayflowProTokenInput.urls of required type PayflowProUrlInput! was not provided.` | You must specify the `urls` attribute.
`Field PayflowProUrlInput.return_url of required type String! was not provided.` | You must specify the `return_url` attribute.
`Field PayflowProUrlInput.error_url of required type String! was not provided.` | You must specify the `error_url` attribute.
`Field PayflowProUrlInput.cancel_url of required type String! was not provided.` | You must specify the `cancel_url` attribute.