#ferret13_api

1 messages ¡ Page 1 of 1 (latest)

keen steepleBOT
#

👋 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/1306503848558465024

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

exotic saffron
#

Do you mean that you will create your own invoice (instead of using Stripe) after collecting the payment?

unreal path
exotic saffron
#

Am I right you would like to do following?

  1. Save the payment method details such as card when making the payment in the Checkout Session
  2. For the future payments on the same customer, you will charge the payment offline internally / directly without using Checkout Session
exotic saffron
#

Thanks for confirming! In this case, I'd recommend following this guide: https://docs.stripe.com/payments/save-during-payment?platform=web&ui=stripe-hosted#save-payment-method

You will add the following to save the payment method.

.setPaymentIntentData(
  SessionCreateParams.PaymentIntentData.builder()
    .setSetupFutureUsage(
      SessionCreateParams.PaymentIntentData.SetupFutureUsage.OFF_SESSION
    )

The payment method will be saved automatically to the customer after the payment is successful.

You will then use Payment Intent directly for future offline payments: https://docs.stripe.com/payments/save-during-payment?platform=web&ui=elements#charge-saved-payment-method

Learn how to save payment details during a payment.

Learn how to save payment details during a payment.

unreal path