#koks_api
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/1298614771888689213
đ 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.
- koks_api, 6 days ago, 43 messages
This is explained here: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=stripe-hosted#charge-saved-payment-method
hi! I'm taking over this thread.
Hi Soma, can help me with above one
you are using Checkout Session?
yes
yeah, with help of this reference, i have added this body += '&custom_text[terms_of_service_acceptance][message]=I authorize Joseph L. Balkan Inc. to store my card details for future payments in accordance with their <a href="https://www.balkanplumbing.com/terms-of-use/" target="_blank">Terms of Service</a>';
This statement terms of use covers the Joseph L. Balkan, Inc. website at balkanplumbing.com and any associated content including email and RSS feeds.
I don't think you can add html there. did this work?
yes that's normal, you cannot use HTML there
no, it didn't work
why don't you use this: https://docs.stripe.com/api/checkout/sessions/create?lang=node#create_checkout_session-consent_collection-terms_of_service and set the term of service url in the dashboard?
wait, it looks like you could add a link with markdown, like this [link](http://url)
https://docs.stripe.com/payments/checkout/customization/policies?payment-ui=stripe-hosted#collect-a-terms-of-service-agreement:~:text=Your custom text can be up to 1200 characters in length. However%2C Stripe Checkout is optimized for conversion%2C and adding extra information might affect your conversion rate. You can bold text or insert a link using Markdown syntax
let me try
Thanks, it worked
i have a follow up question. 1) How to know if card details are saved for a customer? 2) How can i auto debit the amount for the saved card via API call?
- can you clarify in which context? like when you are looking a the PaymentMethod object?
- you mean how to charge a saved card? if so: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
correct, i was trying to understand do i need to another checkout session to reuse the saved card to charge again
no, you would directly create a PaymentIntent for the exosting payment method.
give me sometime
i will study this doc and get back to you
meantime can you confirm me, if i can make this terms of service as optional one since as of now i marked as it required
are you talking about this parameter or something else? https://docs.stripe.com/api/checkout/sessions/create?lang=node#create_checkout_session-consent_collection-terms_of_service
Yes
then set it to none instead of required.
Do I need to invoke stripe.paymentMethods to get Payment Method Id based on customer Id and card type OR can i store payment method Id against customer Id in salesforce to avoid this call?
let me try
Do I need to invoke stripe.paymentMethods to get Payment Method Id based on customer Id and card type OR can i store payment method Id against customer Id in salesforce to avoid this call?
both option work. what matters is that you have the PaymentMethod IDpm_xxx
I was looking at sample response of this api "....checkout/sessions" and i don't see Payment Method Id in it....refer this link https://docs.stripe.com/api/checkout/sessions/list?lang=node
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hello
Taking over as soma had to step away