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

payment_intents error in alipay or wechat pay case #161

Open
S8Cloud opened this issue Jan 18, 2021 · 2 comments
Open

payment_intents error in alipay or wechat pay case #161

S8Cloud opened this issue Jan 18, 2021 · 2 comments

Comments

@S8Cloud
Copy link

S8Cloud commented Jan 18, 2021

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
@Troy-Yang
Copy link

Looks like it's related with config like env. Have you do the copy .env file? How about local side?

It worked fine in my side previously.

@Avinashjain881
Copy link

Change the paymentMethods in the config,js file to the currencies that are supported or used by you in the project

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants