PayPal Payments Advanced payment method
data-variant=info
data-slots=text
The PayPal Payments Advanced payment solution allows merchants to enable their online stores to collect payments directly via credit card or from the PayPal Credit service. If Payments Advanced has been configured to implement Express Checkout, use the PayPal Express Checkout for Payflow payment method instead.
From a GraphQL integration standpoint, PayPal Payments Advanced payment method is identical to the PayPal Payflow Link payment method, with the exception of the payment method code.
PayPal Payments Advanced is available in the US and Canada only.
PayPal Payments Advanced workflow
The following diagram shows the workflow for placing an order when Payments Advanced is the selected payment method.
data-src=../../includes/graphql/payment-methods/payflow-link-workflow.md
Additional Payment information
setPaymentMethodOnCart mutation
When you set the payment method to PayPal Payments Advanced, you must set the code attribute to payflow_advanced. In addition, the payload must contain a payflow_link object, which defines the following attributes:
data-src=../../includes/graphql/payment-methods/payflow-link-attributes.md
Example usage
The following example shows the setPaymentMethodOnCart mutation constructed for the Payments Advanced payment method.
Request:
mutation {
setPaymentMethodOnCart(input: {
payment_method: {
code: "payflow_advanced"
payflow_link: {
return_url: "paypal/action/return.html"
error_url: "paypal/action/error.html"
cancel_url: "paypal/action/cancel.html"
}
}
cart_id: "IeTUiU0oCXjm0uRqGCOuhQ2AuQatogjG"
}) {
cart {
selected_payment_method {
code
title
}
}
}
}
Response:
{
"data": {
"setPaymentMethodOnCart": {
"cart": {
"selected_payment_method": {
"code": "payflow_advanced",
"title": "Credit Card"
}
}
}
}
}