Skip to content

[Bug] Call to Googlepay().confirmOrder is returning an errorΒ #706

@rhanmiano

Description

@rhanmiano

Library used

paypal-js & google pay

🐞 Describe the Bug

For some reason, sandbox tests on our end were not able to proceed anymore because of googlepay_payment_error being thrown when calling paypal.Googlepay().confirmOrder(params) which then calls the sandbox.paypal.com/graphql?ApproveGooglePayPayment. Upon tracing the error, we saw that the graphql call is having a 500 error.

Surprisingly, when initial tests were done (since Oct 20) both on local and on a live staging server everything were okay except for today.

Image

Preview tab is empty.

πŸ”¬ Minimal Reproduction

I'm sorry cannot reproduce a minimal app for reproduction as of now.

πŸ˜• Actual Behavior

paypal.Googlepay().confirmOrder(params) with correct params should proceed

πŸ€” Expected Behavior

paypal.Googlepay().confirmOrder(params) calls to sandbox.paypal.com/graphql?ApproveGooglePayPayment is having a 500 error.

🌍 Environment

  • Node.js/npm: - v18.20.4
  • OS: - Nobara Linux 42 (Workstation Edition) x86_64
  • Browser: - Chrome Version 141.0.7390.54 (Official Build) (64-bit)

βž• Additional Context

Web app is a decoupled Laravel (api/backend) and a Quasar/Vue3 app on fe.
On the backend we use php package for calling to paypal apis for creation and capturing orders

  • "srmklive/paypal": "~3.0"

On the frontend we use

  • "@paypal/paypal-js": "^8.0.2" and dynamically importing https://pay.google.com/gp/p/js/pay.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions