#bpthedev

1 messages · Page 1 of 1 (latest)

bleak bobcatBOT
#

Hello! We'll be with you shortly. 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.

calm pebble
#

Hi there, how can I help?

vagrant yoke
#

Hi Jack - Couple things.

  • When i receive the customer in the dashboard, to continue charging them do i need a default payment method? I can see the card used when I go further into the customer acc.
  • Am I correct in passing the amount as 0 when there is a trail period on the product?

Code snippet;

const options: StripeElementsOptions = {
        mode: "subscription",
        amount: 0,
        currency: "usd",
        paymentMethodCreation: "manual",
    };```
calm pebble
#
  1. You can manually set a default_payment_method, but I'd suggest seting payment_settings.save_default_payment_method to on_subscription so that Stripe updates subscription.default_payment_method when a subscription payment succeeds. (https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method)

  2. It depends on how much you want to charge the customer immediately, see https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=subscription#add-and-configure-the-elements-provider-to-your-checkout-page

Build an integration where you can render the Payment Element prior to creating a PaymentIntent or SetupIntent.