#jimmy_begins

1 messages · Page 1 of 1 (latest)

desert lightBOT
heady mural
#

Hi! Let me help you with this.

#

How are you integrating right now?

forest brook
#

We are using Stripe Elements in a React App and we have largely followed the dev guide for this.

heady mural
#

What guide are you following?

#

Also, what's the bug exactly?

forest brook
#

The bug was that after the Google Pay or Apple Pay modal has launched, if 3DS was triggered, we did not handle the this part correctly. So the customer always ended up stuck unable to complete payment.

heady mural
#

When using PRB, you shouldn't worry about 3DS as it's handled by Stripe. What were you trying to do?

forest brook
heady mural
#

I don't see that there's a need to do this manually when using Payment Request Button.

forest brook
#

So is this where we are going wrong? In the place where we set up the digital wallet we add the listener with handleActions: false. We should just complete as normal?

#

Overall though, the issue is being unable to test this flow

heady mural
#

Why are you setting handleActions: false?

#

Oh, I see.

forest brook
#

Because of this in the docs:

  '{{PAYMENT_INTENT_CLIENT_SECRET}}',
  {
    payment_method: {card: cardElement},
    return_url: 'https://example.com/return_url'
  },
  // Disable the default next action 
handling.
  {handleActions: false}
).then(function(result) {
  // Handle result.error or result.paymentIntent
  // More details in Step 2.
});```
pine palm
#

Hey! Taking over for my colleague. That part of the doc is for the case you want to handle your self the 3DS. Is there a particular reason why you want to handle 3DS with the the PRB by your self ?

forest brook
#

No not really. We just had issues with it without that. I believe we were advised here to do this. But really, if there is a way to test this locally, we can work out the issue. We have this implementation working well on our sister site, so we just need to find a way to test locally

pine palm
#

What is the issue exactly ? do you have a sample PaymentIntent Id ?

forest brook
#

I don't have one to hand, no

pine palm
#

I invite you to try reproducing the issue on your end first without handling manually the 3DS (unless you have a specific need for it)

#

Don't hesitate to come back if you have a PaymentIntent example Id.

forest brook
#

That is what we are trying to do locally. Hence my initial query.

pine palm
#

How've you noticed that there was a bug ? there must be some Stripe Object Ids in the flow if it's actually related to Stripe.

forest brook
#

Here is one we create when we had the site live: pi_3NQsVNAzzqzdaRDE2PmiM1nz

#

Ideally, we want to be able to test these issues without having to deploy code all the way to production and try again. Obviously, that is a very poor development cycle. We test 3DS locally then deploy when we are confident it is working well, for example.

pine palm
#

The issue is that you are passing a refund request for a 0 amount, you need to pass a value greater or equal to 1.

#

I don't see any issue related to the request payment button.

forest brook
#

So if you look at the timeline the initial 3DS failed (this was the Gpay test). There was no 3DS modal and the payment failed. We thought it might be an issue with the card issuer rejecting the payment, but when we saw it wasn't we tested completing without GPay and we got the 3DS modal and completed as normal.

#

The refund request was for a different bug we were testing which we have now resolved

#

Basically this bug was raised as a ticket and I am now picking it up. I just wondered if there is a way to test the issue locally as my person flow as a dev is to try to recreate the issue locally. Without this, it is very hard to work on the issue.

pine palm
#

this was the Gpay test
When you tested with Gpay what was the output ? is there a particular error log? maybe it's a Google Pay issue with that card

forest brook
#

The second from bottom event is the failure. This was 3DS using GPay

#

We tried that same card on our sister site and it worked fine

#

But honestly, none of this is the issue. I just want to know if you can test locally with GPay and 3DS

pine palm
#

That should be this request Id req_T9QgJnwS2YZjq6 and it was successfull request, for Stripe Side I'm not seeing an issue honestly... mayebe this is something hapened with Google Pay checkout flow...

pine palm
forest brook
#

Such a frustrating limitation that Google/Apple put on this service. Thanks for your help