#artursir_docs

1 messages ยท Page 1 of 1 (latest)

distant joltBOT
#

๐Ÿ‘‹ 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.

fleet nightBOT
#

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.

spring oyster
#

Therefore if your Checkout Session does not collect a shipping address, it won't be offered as an option

olive python
#

so probably the doc is a bit misleading, even when dynamic payment methods are enabled some code changes are always required

spring oyster
#

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'

olive python
#

ok, thanks so will add shipping_address_collection as Checkout param, but this is the one required, right?

#

billing_address_collection is not required?

spring oyster
#

Yes, Afterpay requires a shipping address only

olive python
#

thanks a lot ๐Ÿ™‚

spring oyster
#

No problem, glad I could help!

olive python
#

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

spring oyster
#

Afraid not, the shipping address requirement is a session level setting regardless of the payment method that the customer ultimately pays with

olive python
#

ok, thanks!

honest thicket
#

hi! I'm taking over this thread. let me know if you have any other questions.