#Gizmo-subscription-payment

1 messages ยท Page 1 of 1 (latest)

jovial leaf
hard crypt
#

Thank you. To be sure, the guide is missing steps I'll need to follow?

jovial leaf
#

Ah, apologies. That guide should have everything you need to have recurring payments without your customer manually entering the payment flow again.

#

Apologies, I misunderstood your initial question

hard crypt
#

No worries, thank you. To confirm, the customer will be billed automatically for future subscription charges as long as I set the default payment method on the subscription after a successful initial charge per step 8?

slate yarrow
#

๐Ÿ‘‹ stepping in here as @jovial leaf needs to step away.

hard crypt
#

Hi bismarck, thanks for your help.

slate yarrow
#

That will automatically set the payment method as the default and it will be used for future payments

hard crypt
jovial leaf
#

I'm not sure what you mean by "same as"

#

I wouldn't mix and match guides if I could help it. What are you actually trying to do?

hard crypt
#

I'm trying to do exactly what the guide I shared describes. My question was just whether it will bill the subscriber automatically for future payments if I follow this guide.

slate yarrow
#

Yeah so what I referenced above was just launched this week and is a replacement for Step 8 in that guide.

#

We just haven't updated the guide to include that parameter yet

#

I recommend you test it out!

hard crypt
#

Oh, nice, so by adding payment_settings.save_default_payment_method when I initially create the subscription I can basically just skip step 8 because it's being saved as the default payment method when the subscription is first created?

slate yarrow
#

Yep!

#

Once the payment is made then that payment method will be set as the default automatically

hard crypt
#

Beautiful, thank you! When you first sent the link I thought it was a different guide with different steps and I just didn't want to muddy the waters with what I have been following ๐Ÿ˜›

slate yarrow
#

I understand!

hard crypt
#

I'm trying to add a one time charge to the first subscription invoice and it's saying amount and description are invalid parameters. Can you help?

            'customer' => $stripeCustomer->id,
            'items' => [
                [
                    'price' => config($stripeSubscriptionPriceId),
                ]
            ],
            'payment_behavior' => 'default_incomplete',
            'expand' => ['latest_invoice.payment_intent'],
            'add_invoice_items' => [
                [
                    'amount' => '25',
                    'description' => 'Extra stuff'
                ]
            ],
        ]);```
slate yarrow
#

Don't think you can set a description here either

#

And you will need currency and product as well

hard crypt
#

Thanks you. So the product has to correspond to a product I've created in the Stripe dashboard? I was hoping to get away with not having to duplicate our entire product inventory within Stripe and instead just charge the amount that needs to be charged.

slate yarrow
#

Yeah an invoice item must be associated to a product.

#

You don't have to necessarily duplicate your entire product inventory

#

You can just use a single product within Stripe if you want for your one-off items

hard crypt
#

I see, thanks. So is add_invoice_items.price_data.unit_amount_decimal where/how I specify what the one-time charge on the subscription invoice should actually be?

slate yarrow
#

Can you explain what you mean by that?

#

I don't understand

hard crypt
#

I'm asking if that parameter is where I can specify the amount to charge

slate yarrow
#

Oh

#

That or the unit_amount parameter

#

Depending on whether you want to charge a decimal value or not

hard crypt
#

ahh, got it. So if it was, say, 24.99, unit_mount would just be 2499 and I should ignore add_invoice_items.price_data.unit_amount_decimal?

slate yarrow
#

Yep

hard crypt
#

Roger that, thanks. Ok, so I can create a single product in Stripe and call it 'Package' and then charge whatever one-time fee I need to based on what the user is purchasing along with their subscription on my site and just reference the Package product id, right?

slate yarrow
#

Yep

hard crypt
#

Terrific. And if I need to issue a refund because the user wants to cancel their subscription but keep the other stuff, I will be able to do a partial refund so that Stripe doesn't refund them for the added invoice item they are keeping?

slate yarrow
#

You determine the amount to refund for a charge when you create the refund.

#

If you update the Subscription itself then you handle proration.

#

In terms of future invoices

#

But the one-off item won't be included for proration if I remember correctly

hard crypt
#

Great, thank you. I just wanted to make sure a user canceling their subscription wouldn't automatically refund them the entire thing.

slate yarrow
#

No, a cancellation won't cause any sort of refund

hard crypt
#

Regarding subscription renewals, does Stripe automatically retry failed payments?

slate yarrow
hard crypt
#

It looks like my subscription with the add on worked! Do you know what percentage Stripe is supposed to charge? It looks like the Stripe fees came out to 3.75% ? (1.31 out of 34.98)

slate yarrow
#

I don't know much about fees

hard crypt
#

Thank you, I'll take a look

#

Does stripe generate an invoice for the order I can look at or download?

slate yarrow
#

Yes you can download the invoice PDF from the Dashboard

hard crypt
#

Got it, I found view receipt further down the page. I noticed it uses my own email address for the contact email. Can I configure that to my company's support email address?

slate yarrow
hard crypt
#

Thanks!

#

Do you know offhand how I can get the stripe customer id from the payment intent once I look up the payment intent using the payment intent id upon a successful redirect after payment? I want to associate the stripe customer id with my user.

slate yarrow
hard crypt
#

Awesome. You've been so incredibly helpful, bismarck. The pieces are all coming together for me. (Not saying I'm out of questions just yet, but I wanted to convey my gratitude for all of your help - migrating from Braintree which does things quite differently to Stripe has been a bit daunting)

slate yarrow
#

Happy to help!