#zia-ur-rahman_checkout-pms

1 messages ยท Page 1 of 1 (latest)

buoyant yarrowBOT
#

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

๐Ÿ“ 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.

main brook
#

Hi Vanya,
I want to add the payment options enabled for a standard account from dashboard

red oasis
#

What's the exact error message that you see?

main brook
#

The payment method type provided: affirm is invalid

#

one standard account enabled affirm and other one enabled klarna

#

yes actually want to enable buy now pay later functionality

#

so standard account holders can enable those from their dashboard and we add those dynamically while creating checkout pages through API

#

couldn't get you

red oasis
#

@main brook do you work with @vapid mural ?

#

Sorry for this.

main brook
#

no worries

red oasis
#

@vapid mural please create a new thread in #help

buoyant yarrowBOT
red oasis
main brook
#

after adding these payment options and try creating the checkout session using API

#

it throws this error

red oasis
main brook
#

sure let me get that

#

req_K6uOAmqoLgAGMe

pine herald
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

main brook
#

welcome @pine herald

#

this request id is for affirm:
req_OJCciQAJPjDtF0

pine herald
#

taking a look, please give me a few minutes

buoyant yarrowBOT
#

zia-ur-rahman_checkout-pms

pine herald
main brook
pine herald
#

as you can see below the Affirm PM, this is only available for US and Canadian connected accounts

#

you used a DE account

main brook
#

is there a way I can enable all which are available and stripe can handle that accordingly

pine herald
#

yes

main brook
#

can you assist how can I do that using API?

pine herald
#

what API version are you using?

main brook
#

37.14.0

pine herald
#

2020-03-02 is the API version you're using

main brook
#

currently using the following code:
options = new SessionCreateOptions()
{
PaymentMethodTypes = new List<string>
{
"card"
},
Customer = model.StripeCustomerId,
LineItems = new List<SessionLineItemOptions>
{
new SessionLineItemOptions
{
Price = model.PriceId,
Quantity = 1,

}

},

Mode = "payment",
SuccessUrl = SuccessUrl,
CancelUrl = CancelUrl,
PaymentIntentData = new SessionPaymentIntentDataOptions()
{
    Metadata = model.GetMetadata(),
},

};

#

yes, and it's very old...

pine herald
#

automatic_payment_methods.enabled: true is the old integration way