#gpratte
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- gpratte-checkout-mxinstallments, 20 hours ago, 29 messages
Hello! To clarify, if you switch to Card, change the country there, then switch back to Clearpay you see Canada instead of United Kingdom?
No, I will still see UK however the form will accept UK addresses
Also, I've tried different API parameters: if I set GB as the country in payment_intent_data.shipping.address.country, I still see Canada as the default country in the Card address form.
Which mean the same bug will happen.
(i.e. I would not be able to enter a UK address in the Clearpay form) (I suppose Stripe detects my IP is from Canada and autoselects Canada for me in the form)
Sorry, I think I'm still not quite understanding. You said, "I need to change the country in the "Card" tab to "UK" for the "Clearpay" form to work." Just to make sure I'm clear, you're saying that by default with the Checkout Session you created above the Clearpay tab doesn't work, but going into the Card tab and making changes there, then going back to Clearpay makes it work?
yes, exactly
I will update the code to something more sensible (no mix between Canada and UK in the data I send):
checkout_session = stripe.checkout.Session.create(
line_items=[
{
"price_data": {
"currency": "GBP",
"product_data": {
"name": "What a show!",
},
"unit_amount": 24563,
},
"quantity": 1,
},
],
mode="payment",
success_url="https://www.example.com/",
currency="GBP",
locale="en",
payment_intent_data={
"shipping": {
"address": {
"line1": "123 some street",
"city": "London",
"country": "GB",
"postal_code": "SW1W 0NY",
"state": "England",
},
"name": "Customer Name",
}
},
payment_method_types=["card", "afterpay_clearpay"],
)
With this code I still get this behaviour, as explicited by these screenshots:
- in 'Card' the default selected country is Canada
- in 'Clearpay' the form ask for a Canadian province even though the country is set to (and grayed out to) United Kingdom
Okay, let me try and reproduce this, hang on...
To "fix" the issue, the user need to change the Country in the 'Card' form.
Okay, yeah, I can reproduce. WIll flag internally and get this fixed as soon as possible.
Alright, thanks!
Is there a tracking issue number I could get for future follow-up?
(which would happen through our account rep)
You have a Stripe account rep?
If I'm not mistaken
I will ask our product team to be sure, but we have someone the product team interacts with
When it's tech or API related stuff though we usually go through me (software architect) and through this channel
If you want any kind of long-running or async followups you should always use your account rep or Stripe support. We are strictly focused on transactional realtime developer support here on Discord.
ok, noted! Will do in the future.