MageSmith
QueryPaymentServicesPaypal · Magento 2.4.9

getPaymentOrder

getPaymentOrder is a Magento 2 GraphQL query in the PaymentServicesPaypal module. Retrieves the payment details for the order. It returns PaymentOrderOutput and is callable anonymously.

Last verified: against Magento 2.4.9.

Returns

PaymentOrderOutput

Resolver class

\Magento\PaymentServicesPaypalGraphQl\Model\Resolver\GetPaymentOrder

Arguments

cartId String! Required

The customer cart ID

id String! Required

PayPal order 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

Content-Type
application/json
Store
default store view code; use 'default' for the single-store baseline

Query

query ($cartId: String!, $id: String!) {
  getPaymentOrder(cartId: $cartId, id: $id) {
    status
    mp_order_id
    id
    payment_source_details {
      card {
        name
        last_digits
        card_expiry_month
        card_expiry_year
        bin_details { ... }
      }
    }
  }
}

Variables

{
  "cartId": "",
  "id": ""
}

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.