handlePayflowProResponse
handlePayflowProResponse is a Magento 2 GraphQL mutation in the Paypal module. Handle a payment response and save the payment in Quote. Use this mutation for Payflow Pro and Payments Pro payment methods. It returns PayflowProResponseOutput and requires an Authorization header (Bearer customer token).
Last verified: against Magento 2.4.9.
Returns
Resolver class
\Magento\PaypalGraphQl\Model\Resolver\PayflowProResponse
Arguments
An input object that includes the payload returned by PayPal and the cart ID.
Example request
Auto-generated from the SDL — paste-ready against your store's /graphql endpoint. Replace the host, store code, and any required values before running.
Headers
Query
mutation ($input: PayflowProResponseInput!) {
handlePayflowProResponse(input: $input) {
cart {
gift_message {
to
from
message
}
id
items {
not_available_message
id
uid
quantity
is_available
prices { ... }
product { ... }
errors { ... }
}
itemsV2 {
items { ... }
page_info { ... }
total_count
}
applied_coupon {
code
}
applied_coupons {
code
}
email
shipping_addresses {
available_shipping_methods { ... }
selected_shipping_method { ... }
customer_notes
items_weight
cart_items { ... }
cart_items_v2 { ... }
same_as_billing
pickup_location_code
}
billing_address {
customer_notes
}
available_payment_methods {
is_deferred
code
title
}
selected_payment_method {
code
title
purchase_order_number
}
prices {
grand_total { ... }
grand_total_excluding_tax { ... }
subtotal_including_tax { ... }
subtotal_excluding_tax { ... }
discount { ... }
subtotal_with_discount_excluding_tax { ... }
applied_taxes { ... }
discounts { ... }
}
total_quantity
is_virtual
rules {
uid
}
}
}
}Variables
{
"input": {
"cart_id": "",
"paypal_payload": ""
}
}Related in PaypalGraphQl
Other fields shipped by the same module.
createPayflowProToken
Initiate a transaction and receive a token. Use this mutation for Payflow Pro and Payments Pro payment methods
Paypal · returns CreatePayflowProTokenOutput
createPaypalExpressToken
Initiate an Express Checkout transaction and receive a token. Use this mutation for Express Checkout and Payments Standard payment methods.
Paypal · returns PaypalExpressTokenOutput
getHostedProUrl
Retrieve the secure PayPal URL for a Payments Pro Hosted Solution transaction.
Paypal · returns HostedProUrl
getPayflowLinkToken
Retrieve payment credentials for a transaction. Use this query for Payflow Link and Payments Advanced payment methods.
Paypal · returns PayflowLinkToken
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.