#artursir_docs
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1275780531648462861
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- artursir_afterpay-checkout-connect, 19 hours ago, 79 messages
Unfortunately Afterpay payments always require a shipping address as noted here: https://docs.stripe.com/payments/afterpay-clearpay/accept-a-payment?web-or-mobile=web&payments-ui-type=stripe-hosted
Therefore if your Checkout Session does not collect a shipping address, it won't be offered as an option
so probably the doc is a bit misleading, even when dynamic payment methods are enabled some code changes are always required
I don't really agree. It's dynamic in the sense that we dynamically compute which PMs are supported based on the parameters configured on the session/payment
In this case, as per the examples on the page you linked, Checkout must collect a shipping address
That's why the parameter is included in the examples
Otherwise, if you manually controlled the available PMs by passing payment_method_types: ['afterpay_clearpay'] the API request would error without shipping_address_collection
That is what is meant by 'continue manually configuring the payment methods you present to your customers with Checkout'
ok, thanks so will add shipping_address_collection as Checkout param, but this is the one required, right?
billing_address_collection is not required?
Yes, Afterpay requires a shipping address only
thanks a lot ๐
No problem, glad I could help!
one example if I may ๐
payment methods displayed in the Checkout are: card, Afterpay
is it possible to not require shipping address for card then?
it looks that the adrress is required for all payment methods if Afterpay is displayed
Afraid not, the shipping address requirement is a session level setting regardless of the payment method that the customer ultimately pays with
ok, thanks!
hi! I'm taking over this thread. let me know if you have any other questions.