Skip to content

[Issue] Update PaypalExpressToken resolver to use correct input from GraphQL Schema. #35180

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #35050: Update PaypalExpressToken resolver to use correct input from GraphQL Schema.


Description (*)

Update PaypalExpressToken resolver to use correct input from GraphQL Schema. Currently, adding the use_paypal_credit input defined in etc/schema.graphqls to createPaypalExpressToken requests does nothing, as the code is incorrectly checking for the presence of paypal_credit rather than use_paypal_credit.

Input defined in schema:

Manual testing scenarios (*)

  • Make request to createPaypalExpressToken mutation via GraphQL
  • Ensure use_paypal_credit field in request is set to true
  • From the mutation response, navigate to the start URL returned in the paypal_urls output
  • See that user is navigated to PayPal credit checkout - not standard PayPal checkout.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

Labels

Area: PaymentsComponent: PaypalGraphQlIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions