#CaReS

1 messages ยท Page 1 of 1 (latest)

polar meadowBOT
shadow lion
#

it should be only
payment_intent.created
payment_intent.succeeded
charge.succeeded
customer.subscription.updated (status active)

#

Copying the other message here.

#

Hi! Let me help you with this.

hybrid rapids
#

hey, thank you ๐Ÿ™

#

should be something like this ๐Ÿค” ?

shadow lion
#

Could you please share the Subscription ID? sub_xxx

hybrid rapids
#

sub_1Mg4OiABr9G9iqne5LRSc3fI

shadow lion
#

Hi, sorry for delay, I'm still looking.

hybrid rapids
#

ohh ok thank you

#

just tested, no it's not

real heath
#

Thank you for testing, still looking in to what this might be and will get back to you

hybrid rapids
#

thank you ๐Ÿ™

real heath
#

You will want to use payment_behavior=allow_incomplete when making these updates. Otherwise Otherwise we don't attempt to charge immediately and the subscription goes to past due for a few secs until you confirm the PI yourself https://stripe.com/docs/api/subscriptions/retrieve#create_subscription-payment_behavior

hybrid rapids
#

hmm

#

let me check

#

there is no difference with
payment_behavior=allow_incomplete

or without it

#

I got again two webhook with diference status

real heath
#

Interesting. Checking in to what else might help

#

Do you have the ID of that subscription?

hybrid rapids
#

sub_1Mg4OiABr9G9iqne5LRSc3fI

#

this one ?

real heath
#

Yep thank you

hybrid rapids
#

from code perspective it does
$user->updateDefaultPaymentMethod($paymentMethod);

$user->createOrGetStripeCustomer();

$subscription->incrementAndInvoice($quantity);

could some of this method recall update event ?

#

on subscription

real heath
#

Ah I did not notice that you are using Laravel Cashier here at first my apologies. I am unclear what that changes here but am looking

hybrid rapids
#

Ohh sorry about that I think I should say it at the first time (

real heath
#

hey sorry still having trouble figuring this out but I am still looking

#

Would you be able to send me the ID of the newer subscription that you tried the update with allow_incomplete? Or was that the same subscription?

hybrid rapids
#

was the same subscription

#

each my test are only on this subscription id
sub_1Mg4OiABr9G9iqne5LRSc3fI

real heath
#

gotcha thank you, checking in to this

#

Interestingly I still only see update requests with "payment_behavior": "default_incomplete", on that subscription. Is it possible that your latest code wasn't running when trying to update this subscription?

hybrid rapids
#

hmm not sure let me check once again please

#

seems there is not changes

#

I got two events again (

real heath
#

That still says default incomplete though?

#

Oh I see I said the wrong one

#

Sorry this second time I meant to ask you to double check that allow_incomplete was being set

hybrid rapids
#

I was trying with allo incomplete

#

and there is no changes

#

but let me check once again

real heath
#

I can still only see default_incomplete in your logs. At this point this may be a question of how to pass that value properly with Laravel Cashier

hybrid rapids
#

where I can check this logs?