#bpthedev
1 messages · Page 1 of 1 (latest)
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.
- bp-paymentintent-deferred, 2 hours ago, 14 messages
- bpthedev, 20 hours ago, 6 messages
Hi there, how can I help?
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",
};```
-
You can manually set a default_payment_method, but I'd suggest seting
payment_settings.save_default_payment_methodtoon_subscriptionso 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) -
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