#jamesr9118
1 messages · Page 1 of 1 (latest)
Hi there!
How are you accepting payments? Checkout Session, Payment Element, something else?
With PayNow when we parse a payment intent, basically, the amount, it simply generates a QR code right?
So you are using PaymentIntent with the Payment Element?
Payment Element is for the user input of card details, right? But that would be irrelevant in the use of Stripe generated QR Code, which requires that the user employs his bank app to scan and pay..
True, I was just trying to understand your itnegration. So you're not using Checkout Session, but directly the PaymentIntent.
Did you follow the steps explains in the link you shared? https://stripe.com/docs/payments/paynow/accept-a-payment?platform=web
What exactly is your question?
Well the steps in the link are not clear. I can't really follow the logic. A Code along demo would be nice.
I don't think we have a demo, but the link above contains all the code needed:
- Create the PaymentIntent on the backend
- Then on the frontend get back the client_secret from the backend and call
confirmPayNowPayment
In this episode, you'll learn how to accept a one-time payment with a custom form using PHP on the server and the Stripe Payment Element on the client. The Payment Element enables you to collect several different payment method types from cards and bank accounts to wallets and buy-now-pay-later payment methods.
Presenter
CJ Avilla - Devel...
I managed to follow this demo and got it working, except for the webhook. It has PayNow option in it but when clicked does nothing. Could because I am using Xampp server? or because I've not implemented https?
It has PayNow option in it but when clicked does nothing.
Can you clarify exactly what is the issue? You click on what exactly? What were you expecting to happen? What happens instead? Do you see any error messages in your logs? Etc.
When the checkout button is pressed it creates this payment element page. And the interface has a PayNow Button, which when activated does nothing.
When the Pay button is pressed it should generate the QR code but that did not happen.
which when activated does nothing.
Did you click on the pay button?
Sorry, when the PAY button pressed, the QR code was not generated as expected.
Is it because I am using the test mode secret?
Sorry, when the PAY button pressed, the QR code was not generated as expected.
So what does happen when you click on the pay button? Any errors in the browser console?
Is it because I am using the test mode secret?
No, test mode and live mode should both work similarely.
No errors. When I use the card mode everything works fine, except for hiccups with the webhook.
I get succeded return with Card mode.
Could it be because I'm not set up for HTTPS yet?
Do you have a URL where I would reproduce the issue?
I just tried on my end, and when I click pay I do see this:
So there's some issues on your end. And you should see an error message in yoru network tab or browser console.
If you want me to investigate this, I would need a URL where I can reproduce your issue
Noted. I will try again, and get back here. Thank you.
Happy to help 🙂