#George Farhat

1 messages · Page 1 of 1 (latest)

long merlinBOT
agile oriole
#

Hello do you have the ID of a specific event that that happened for? (evt_123)

halcyon patio
#

no I am building the integration at the moment

agile oriole
#

Can you explain this part a bit more? Where are you looking and what are you seeing?

There is a payment intent object in the payload. Assuming that we only accept cards (manually entered & via google/apple pay), I am trying to get the issuing country of the card. This should be under "payment_method_details", but there is no such key in the types.

halcyon patio
#

sorry for the confusion, so If we enable a webhook from stripe to be triggered when a method is attached to a payment intent, the data in the webhook will contain the payment intent

#

I am trying to get the issuing country of the payment method from the payment intent

agile oriole
halcyon patio
#

will i be able to retrieve for a payment method that has not yet been charged?

#

and where do I get the method ID from? (assuming the user is paying for the first time)

agile oriole
#

I am not 100% sure, I think it may vary by how you are creating this payment method. I would recommend testing this

#

How are you creating the payment method?

halcyon patio
#

the payment method is created on the client side, the user will enter their card details (elements/react native Card Element)

#

so i believe what will happen on client side is Confirm Payment

agile oriole
#

Let's take a quick step back: can you tell me what your end goal is here? Based on what the card's country is before the payment, what will your integration do here?

halcyon patio
#

So we will have 2 stripe accounts - one to accept EU cards, and one to accept UK cards.
The idea is we ask the customer which region their card is issues (EU, UK, International), and depending on their answer we choose the right account to initiate the Card Element.
If they input a card who's issuing country is not int he region they selected, we will show them an error.
The way we thought of doing this is, once the user enters their card details (ie. payment details are attached to the payment intent) we check the issuing country via stripe to either accept or reject

agile oriole
#

Taking a further step back, is this to avoid some kind of fee? Or something else?

#

Unfortunately that specific plan would not work on Stripe. A payment intent can only exist on one account, you can't switch its country after it was created