#psyche

1 messages · Page 1 of 1 (latest)

dark hazelBOT
tidal wren
#

hiii

autumn shell
#

Do you have a request ID for each of the card attempts?

tidal wren
#

this is the error message

#

thank you for help so far!

#

is it safe to share request id publicly?

#

the app is in live mode @autumn shell

autumn shell
#

Yes, request IDs are safe to share publicly

tidal wren
#

req_wAJ59SMfn8gGo5

#

req_p80FoiDoB25Fbp

#

req_NkO6NF5KDb9BEq

#

req_OMqYfzfq5PkxZg

#

req_RTC6BxQIHE63LQ

autumn shell
#

It seems pretty obvious that the cards domiciled in Mexico, where pesos are their currency. Are you wondering how to create a payment page in a different currency? Or do you have another question?

tidal wren
#

Can I make my app accept all currencies?

autumn shell
#

How are you creating your Checkout Session currently? Via the API? Or via the Dashboard?

tidal wren
#
checkout_session = stripe.checkout.Session.create(
    client_reference_id=req.user.id,
    metadata={"rank": self.PRICE_ID_TO_RANK[price_id]},
    success_url="https://WEBSITE.com/api/v1/stripe/success?session_id={CHECKOUT_SESSION_ID}",
    cancel_url="https://WEBSITE.com/api/v1/stripe/cancel",
    payment_method_types=["card"],
    mode="subscription",
    line_items=[{
        "price": price_id,
        "quantity": 1,
    }]
)
autumn shell
#

Okay, in that case I would recommend looking at these docs: https://stripe.com/docs/payments/checkout/present-local-currencies

They allow you to present in whatever currency is local to the customer. As for presenting in a non-local currency or explicitely declaring a currency for the Checkout Session, you do that with the currency field: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-currency

Help improve conversion rates by presenting prices in your customers' local currencies using Checkout.