#__rob1986__
1 messages · Page 1 of 1 (latest)
this blog post describes it well : https://dev.to/stripe/purchase-fulfilment-with-checkout-or-wait-what-was-i-paid-for-335d
do i add the expands property as part of my $stripe->paymentLinks->create call?
not quite sure how do add it to my current flow of creating the payment link and redirecting them to the payment page
and then the webhook fires after the transaction
no, you add it as part of the webhook endpoint
the webhook endpoint(for checkout.session.completed) retrieves the CheckoutSession and you can pass Expand at that point
it's also explained at https://stripe.com/docs/payments/checkout/fulfill-orders#handle-the-event
so i make another api call within my checkout.session.completed endpoint logic?
and that call has the expands property
yes