#teddy06894
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.
- teddy06894, 4 days ago, 4 messages
- teddy06894, 5 days ago, 23 messages
Hi
I am using the stripe-python library to generate the Checkout Session with that:
params = {
"automatic_tax": {"enabled": True},
"client_reference_id": user_id,
"customer": customer_id,
"payment_method_types": payment_methods_types,
"phone_number_collection": {"enabled": True},
"line_items": [{"price": price_id, "quantity": 1}],
"mode": mode,
"ui_mode": "hosted",
"locale": "auto",
"consent_collection": {"terms_of_service": "required"},
"custom_text": {
"terms_of_service_acceptance": {
"message": terms_of_service_message,
},
},
"metadata": {
"user_id": user_id,
},
}
checkout_session = self.client.checkout.sessions.create(params=params)
I have activated the Apple Pay and Google Pay method in the Test Dashboard
and what's your question? Google/Apple Pay don't show up?
Yes
But, with errors
Because when I try to pay with Apple Pay using my iPhone
The Checkout Session page show me some red errors
I don't follow. do you see Apple/Google Pay as option in the Checkout Session or not?
Please check the following information and try again:
Billing Addres: Address line 1 is required
etc
and what exactly are the errors?
Yes yes, I have the option
can you share a screenshot of the error?
did you check if your card saved in your Apple Wallet contains a billing address? you can check that in your OS settings
yes, i have it
can you share the Checkout Session ID (cs_xxx) with this issue?
cs_test_a1UFGnxYRkWxHsmRKv51pI19MAkmAFTP5CQR6QRFaJygoee1VW1wcA1SfH
thanks! give me a few minutes to look into this.
still looking, sorry for the wait
Okay
can you try removing the card from your wallet and adding it again?
can you try removing one and adding it back, and then try to pay with it?
I have other doubt
before it
what is the different betweent this and the first screenshot?
The last one is the payment link directly from the test dashboard and Apple Pay is working
But with the Checkout Session not
Hi?
that is Checkout, the first screenshot is PaymentElement
Why Apple Pay works in Payment and not in Checkout?
well when using the embedded mode of Checkout the page needs to be hosted on HTTPS, and the domain name needs to be registered for Apple Pay in your Dashboard too
do you happen to have a direct link to the page where you are embedding Checkout so I can look in my browser?
I am using the test mode
And I am using the hosted mode
The problem here is, why I need to fill the address information to use the Apple Pay in the Checkout Session
And in the PaymentIntent I don't need to fill this
I believe it's because phone_number_collection also implies billing address collection for Apple Pay since it's how it works inside Apple, the phone is part of the address
I have activated the phone_number_collection
yep I know
"billing_address_collection": "required",