#Mytras

1 messages · Page 1 of 1 (latest)

abstract moonBOT
undone folio
#

Hi! Let me help you with this.

#

It depends, could you please share a subscription ID sub_xxx so I could take a closer look

wind bolt
#

I have invoice id

#

in_1MBwxIKavdtumQQGj9s1GC8h

#

with a sub

undone folio
#

I see collection_method: "send_invoice", in this case yes, an invoice will be sent.
However, this means that the customer will not be automatically charged.

wind bolt
#

does that mean that everymonth the customer will receive an invoice?

#

or that only for the first invoice?

undone folio
#

Yes, every cycle, in your case, every month.

wind bolt
#

so every month they will receive an invoice to pay

#

mmhh

#

that is not what i wanted

#

for subs i wanted the customer to be automatically charged after the first payment

#

I would I do that?

undone folio
wind bolt
#

i thought about that, but how the first payment will be done?

#

most of our customers will be new on the Stripe database

#

so there will not be a registered payment method

#

that is why i thought to use collection_method: "send_invoice"

undone folio
#

You can follow this guide to collect to build a basic subscription integration, it will take you through creating a subscription for a customer and collecting and saving a payment method, you can either use Stripe Checkout (a hosted page), or use Payment Element on your own website: https://stripe.com/docs/billing/subscriptions/build-subscriptions

wind bolt
#

is there a way to do through API since I am creating everything via zpaier`?

#

with everything i mean the whole automated flow

#

zapier*

undone folio
wind bolt
#

to create the check out session should I follow the step 3 and 4?

#

if i follow the link I sent you, am I supposed to also setup the parameter collection_method?

#

also in the "create session" API is mentioned the paramenter "customer_creation", I create a customer in stripe in the moment that they are registered in our website

#

following the link I sent you, will I double the customer?

undone folio
wind bolt
#

also the Company I am setting up this for does not have a success_url or cancel_url, since they do not sell on their websites

#

How would that work in my case? does Stripe have hostes success and canel urls?

undone folio
wind bolt
#

hosted* cancel*

undone folio
wind bolt
#

mmh

#

is there another way to do this?

#

because the company wanted something fast and easy

undone folio
#

If you are looking for a no-code solution, you can use Payment Links, this is like Checkout Sessions but one link for everyone: https://stripe.com/docs/no-code/payment-links

  • No code
  • Hosted success page
  • A customer is newly create every time
wind bolt
#

i thought so

#

that was my first approach to it

#

one question

#

if I send a customer an invoice for the first cycle of the sub can I store the payment method and later on charged them automatically on the payment method stored?

undone folio
wind bolt
#

give me a moment to read this

undone folio
#

In order:

  1. Create a subscription with collection_method: "send_invoice" and payment_settings.save_default_payment_method: "on_subscription".
  2. The customer gets an email and pays the first invoice. The payment method gets saved.
  3. invoice.paid events is sent.
  4. You update the subscription with collection_method: "send_invoice".
  5. The customer is charged automatically on next cycles with saved payment method.
wind bolt
#

once I update the subscription will the customer be notified?

undone folio
#

No

wind bolt
#

so it will be better to specify in the payment description that from the next payment on it will be automatically

undone folio
#

Yes, it's good to be transparent with the customer

wind bolt
#

absolutely

#

thank you so much for everything I will try this

undone folio
#

Happy to help. Let me know if you have any other questions.