#George Farhat
1 messages · Page 1 of 1 (latest)
Hello do you have the ID of a specific event that that happened for? (evt_123)
no I am building the integration at the moment
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.
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
That will still be on the payment method object, payment intents do not have that info. So you can retrieve the payment method and this will be at card.country on the payment method object https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-country
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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)
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?
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
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?
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