Skip to content
This repository was archived by the owner on Apr 19, 2022. It is now read-only.
This repository was archived by the owner on Apr 19, 2022. It is now read-only.

payment_intents error in alipay or wechat pay case #161

@S8Cloud

Description

@S8Cloud

Bug report

Describe the bug

Wechat and Alipay not working under production mod.

To Reproduce

  • Deploy the latest repo to heroku (Nodejs) and fill in live keys
  • Choosing location 'China' or 'Hong Kong' and click 'Alipay' or 'Wechat Pay'

Expected behavior

Won't jump to Alipay website or generate Wechat QR code.

POST https://xxx.herokuapp.com/payment_intents 500 (Internal Server Error)
createPaymentIntent @ store.js:95
(anonymous) @ payments.js:744
async function (async)
(anonymous) @ payments.js:18
(anonymous) @ payments.js:1039
payments.js:459 Uncaught (in promise) TypeError: Cannot read property 'amount' of undefined
    at HTMLFormElement.<anonymous> (payments.js:459)
(anonymous) @ payments.js:459

Screenshots

image

System information

  • OS: macOS
  • Browser Chrome
  • Server environment Node

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