#tristanoneil-bacs-mandate

1 messages ยท Page 1 of 1 (latest)

wanton flax
#

Hello ๐Ÿ‘‹
Give me a moment to catch up here, thanks ๐Ÿ™‚

wanton flax
#

Okay if you're using webhooks,

for one time payments you can listen to the checkout.session.completed webhook event then retrieve the PaymentIntent and look at the most recent's Charge's payment_method_details to get the mandate ID

Same for subscriptions but you'd likely need to look at subscription's first invoice -> Initial Payment Intent -> first charge -> payment_method_details

real kindle
#

Ok if I'm not using webhooks will the charge be present upon the success url callback?

wanton flax
#

No it won't be. You'd need to retrieve the session using the Session ID first, then the PaymentIntent and then the charge object to get to payment_method_details

real kindle
#

Ok, right but the timing will work out that I should be able to get the PaymentIntent and the charge object up the success url callback?

#

I just wanted to ensure the charge is created at this point in time

wanton flax
real kindle
#

Right, I just want to make sure I'll be able to have a charge object to grab the mandate id ๐Ÿ™‚

#

Thanks!