#zia-ur-rahman_checkout-pms
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/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.
- zia-ur-rahman_api, 46 minutes ago, 17 messages
- zia-ur-rahman_api, 6 days ago, 23 messages
Hi Vanya,
I want to add the payment options enabled for a standard account from dashboard
What's the exact error message that you see?
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
no worries
Where do you see the error exactly?
after adding these payment options and try creating the checkout session using API
it throws this error
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
๐ taking over for my colleague. Let me catch up.
taking a look, please give me a few minutes
zia-ur-rahman_checkout-pms
you need to configure the Payment Methods here https://dashboard.stripe.com/settings/payment_methods/connected_accounts for direct charges
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I am currently on test environment and these are enabled on test:
https://dashboard.stripe.com/test/settings/payment_methods/connected_accounts?config_id=pmc_1O2IlwC5nS7MIewM9xFOSdCd
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
as you can see below the Affirm PM, this is only available for US and Canadian connected accounts
you used a DE account
is there a way I can enable all which are available and stripe can handle that accordingly
yes
can you assist how can I do that using API?
what API version are you using?
37.14.0
2020-03-02 is the API version you're using
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...
automatic_payment_methods.enabled: true is the old integration way
in the newer API version https://docs.stripe.com/upgrades#2023-08-16 you don't have to pass anything