#teddy06894

1 messages · Page 1 of 1 (latest)

empty hareBOT
#

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.

finite raft
#

hi there!

#

how can I help?

ionic wraith
#

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

finite raft
#

and what's your question? Google/Apple Pay don't show up?

ionic wraith
#

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

finite raft
#

I don't follow. do you see Apple/Google Pay as option in the Checkout Session or not?

ionic wraith
#

Please check the following information and try again:
Billing Addres: Address line 1 is required
etc

finite raft
#

and what exactly are the errors?

ionic wraith
#

Yes yes, I have the option

finite raft
#

can you share a screenshot of the error?

ionic wraith
#

Yes

#

But I don't have the options to complete these fields

finite raft
#

did you check if your card saved in your Apple Wallet contains a billing address? you can check that in your OS settings

ionic wraith
#

yes, i have it

finite raft
#

can you share the Checkout Session ID (cs_xxx) with this issue?

ionic wraith
#

cs_test_a1UFGnxYRkWxHsmRKv51pI19MAkmAFTP5CQR6QRFaJygoee1VW1wcA1SfH

finite raft
#

thanks! give me a few minutes to look into this.

ionic wraith
#

Perfect

#

nothing?

finite raft
#

still looking, sorry for the wait

ionic wraith
#

Okay

finite raft
#

can you try removing the card from your wallet and adding it again?

ionic wraith
#

I have multiple cards in my iOS Wallet...

#

And I pay with them all the days

finite raft
#

can you try removing one and adding it back, and then try to pay with it?

ionic wraith
#

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

empty hareBOT
ionic wraith
#

Hi?

grave cradle
ionic wraith
#

Why Apple Pay works in Payment and not in Checkout?

grave cradle
#

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?

ionic wraith
#

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

grave cradle
#

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

ionic wraith
#

I have activated the phone_number_collection

grave cradle
#

yep I know

ionic wraith
#

"billing_address_collection": "required",