#jamesr9118

1 messages · Page 1 of 1 (latest)

visual waveBOT
red light
#

Hi there!

#

How are you accepting payments? Checkout Session, Payment Element, something else?

cunning belfry
#

With PayNow when we parse a payment intent, basically, the amount, it simply generates a QR code right?

red light
#

So you are using PaymentIntent with the Payment Element?

cunning belfry
#

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..

red light
#

True, I was just trying to understand your itnegration. So you're not using Checkout Session, but directly the PaymentIntent.

#

What exactly is your question?

cunning belfry
#

Well the steps in the link are not clear. I can't really follow the logic. A Code along demo would be nice.

red light
#

I don't think we have a demo, but the link above contains all the code needed:

  1. Create the PaymentIntent on the backend
  2. Then on the frontend get back the client_secret from the backend and call confirmPayNowPayment
cunning belfry
#

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?

red light
#

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.

cunning belfry
#

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.

red light
#

which when activated does nothing.
Did you click on the pay button?

cunning belfry
#

Sorry, when the PAY button pressed, the QR code was not generated as expected.

#

Is it because I am using the test mode secret?

red light
#

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.

cunning belfry
#

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?

red light
#

Do you have a URL where I would reproduce the issue?

cunning belfry
#

THis the cards mode.

#

No I am using local host on my Xammp server.

red light
#

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

cunning belfry
#

Noted. I will try again, and get back here. Thank you.

red light
#

Happy to help 🙂