#Linups

1 messages · Page 1 of 1 (latest)

unreal nacelleBOT
gritty marlin
#

Hey, sorry for the delay here

#

That looks like a Checkout Session parameter, is that right?

#

When you say 'recurring transactions', which API objects do you mean? The related invoice? A specific event?

sour latch
#

the perfect would be to see metadata in upcomming charge.succeeded events.

#

then webhook parser could read and do certain actions on recurring charges.

gritty marlin
#

But you're using Checkout Sessions, yes?

sour latch
#

one moment, i will check.

#

$subscription = $this->stripe->subscriptions->create([
'customer' => $customer->id,
'items' => [
['price' => $subscriptionID],
],
]);

#

not sure, but probably you know from code.

gritty marlin
#

Ok, so you're passing metadata to that method not subscription_data[metadata]?

sour latch
#

im not passing yet. but i need to pass and be sure that it will show up in all recurring charges.

gritty marlin
#

I'm fairly sure it's not set on underlying payment/charge so wouldn't be in charge.succeeded events

gritty marlin
sour latch
#

thank you, i will check it.