#.saberkhan
1 messages · Page 1 of 1 (latest)
Hi there, are you talking about a payment mode Checkout Session?
Yes
OK. For payment mode Checkout Session, Stripe will automatically create a PaymentIntent under the hood.
The payment_method_options hash is a configuration you you can set for specific payment method.
For instance, you can use payment_method_options.acss_debit to set details about the ACSS Debit payment method options.
Maybe I don't fully understand the question, can you walk me through with an example?
Hide child parameters
payment_method_options.acss_debit
optional associative array
contains details about the ACSS Debit payment method options.
Hide child parameters
payment_method_options.acss_debit.currency
optional enum
Three-letter ISO currency code, in lowercase. Must be a supported currency. This is only accepted for Checkout Sessions in setup mode.
Possible enum values
cad
Canadian dollars
usd
US dollars
payment_method_options.acss_debit.mandate_options
optional associative array
Additional fields for Mandate creation
Show child parameters
payment_method_options.acss_debit.setup_future_usage
optional enum
Indicates that you intend to make future payments with this PaymentIntent’s payment method.
Providing this parameter will attach the payment method to the PaymentIntent’s Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be attached to a Customer after the transaction completes.
When processing card payments, Stripe also uses setup_future_usage to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.
Possible enum values
on_session
Use on_session if you intend to only reuse the payment method when your customer is present in your checkout flow.
off_session
Use off_session if your customer may or may not be present in your checkout flow.
none
Use none if you do not intend to reuse this payment method and want to override the top-level setup_future_usage value for this payment method.
Look above example and this will be for future usage. If I am creating a One Time Checkout session, why I need to use payment_method_options?
key word is ONE TIME
payment_method_options is a optional hash, if you don't have any configuration that you want to set to a specific payment method, you can leave it null.
So in essense payment_method_options are for FUTURE USAGE. Am I right?
No
Why?
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage This is the param that you should use if you intend to make future payments with the payment method collected by this Checkout Session.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So will then values of payment_methods_options will be override by some other parameters?
I am talking payment_method_types.
Becasue both payment_method_types and payment_method_options gives the same values of differy way to pay.
This is bit confusing to me.
OK. so payment_method_types tells Checkout Sessions what payment methods that the Checkout page should present to the customer, so it's different from payment_method_options
For example, if you set payment_method_types to ['card', 'us_bank_account'], then the checkout out session will present card and ACH payment methods to customer
payment_method_type is clear. Confusing part is payment_method_options.
OK. In most cases you can just leave payment_method_options null.
I will do it but I will appreciate it very much if you can give me an example of the usage of payment_method_options. Thank you!
us_bank_account: {
financial_connections: {
permissions: ['payment_method'],
},
},
},```
In this example, we are enabling Financial connection for ACH direct debit payment method
I need to read the content of the above link. Thank you though!
Happy to help
Is there a way to pull all of my conversation I made in discord?
I don't know if there's a way to export conversions from discord.
ok
"payment_method_options.p24.tos_shown_and_accepted". Is this a Boolean function?
Yes it's a boolean
Thank you
"payment_method_options.paypal.capture_method". Only enum value is "Manual". Can we use it then Checkout session.
You can use it if needed
How can we use it on line payment options since only options is manual
The explanation says "use manual if you intend to place the funds on hold. "
Do you intent to place the funds on hold?
No
Then don't use it
So input is "null"
If i do not use "payment_method_options.paypal". Should I totally ignore this field or should I use "null"
You can just ignore it.
Visit this page for pricing https://stripe.com/pricing. If you need more info, reach out to Stripe support https://support.stripe.com/contact/email
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
payment_method_options.wechat_pay.app_id". How this works?
Also is this a Boolean function?
The doc says The app ID registered with WeChat Pay. Only required when client is ios or android.
So it's string instead of boolean. Do you have an account with Wechat?
No
Without account id, buyer cannnot use it ofr ios and android? So if I have wechant account then I add this account id here.
Without account id, buyer cannnot use it for ios and android? So if I have wechant account then I add this account id here.
I'd suggest you to try it out the integration yourself and come back if you have a specific question.
Will you give me a link to get the requirements for Apple and Google Pay? Thanks!