#koks_api

1 messages ¡ Page 1 of 1 (latest)

brittle bearBOT
#

👋 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.

north tinsel
brittle bearBOT
warm nymph
#

ok

#

Also can you help me how can I add Terms of Service Url in my consent custom text

crimson loom
#

hi! I'm taking over this thread.

warm nymph
#

Hi Soma, can help me with above one

crimson loom
#

you are using Checkout Session?

warm nymph
#

yes

crimson loom
#

oh, you meant displaying a customer URL in the text?

warm nymph
#

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.

crimson loom
#

I don't think you can add html there. did this work?

warm nymph
#

but in the payment it just shows text

#

not as hyper link

crimson loom
#

yes that's normal, you cannot use HTML there

warm nymph
warm nymph
#

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?

crimson loom
#
  1. can you clarify in which context? like when you are looking a the PaymentMethod object?
warm nymph
#

correct, i was trying to understand do i need to another checkout session to reuse the saved card to charge again

crimson loom
#

no, you would directly create a PaymentIntent for the exosting payment method.

warm nymph
#

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

crimson loom
crimson loom
#

then set it to none instead of required.

warm nymph
warm nymph
crimson loom
#

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 ID pm_xxx

brittle bearBOT
warm nymph
shut hawk
#

Hello
Taking over as soma had to step away