#.abishek
1 messages · Page 1 of 1 (latest)
Hi again, we can continue here. Is this regarding my last message about webhook endpoints?
yes
i am using the webhook endpoints to manage post purchase processing, but I wanted to UI level operations like clearing the cart, etc. so when the user reaches the success_url, the payment_status will always be paid correct?
Yup, it should be. Other possibilities are the Checkout Session is abandoned, and the customer doesn't reach the success or return urls. Or they click on the back button and are redirected to the return url.
ya, i understand those scenarios, just wanted to make sure success_url is always for succesful payment and no other edge cases. thank you...
Any time!
got an issue with checkout session where the lineitems include both subscription item and one time payment item, when I set the mode to payment when creating checkout session, I get this error You specified paymentmode but passed a recurring price. Either switch tosubscription mode or use only one-time prices.
How can I create a checkout session that can handle both subscription and one-time payments together?
You switch the mode to subscription.
ok, but the one-time items will still only be billed once. correct? if the mode is set to subscription?
Yup, they're only included on the first Invoice.