We want to have packages like 10 appointments paid...
# developers
m
We want to have packages like 10 appointments paid. However looking at code the payment is really hard coded to Stripe, you can't even easily swap out payment providers. Has anyone implemented a credit system or give some pointers on what would need to change?
a
Hi @Matthew Campbell, this could be some of the steps but just on paper right now: • I think first you can generate a stripe payment link that will credit users 10 appointments. • When payment success, update stripe user metadata to grant 10 appointments. • When user submits booking, before creating it fetch how many metadata.appointments he has and update accordingly. If there is no credits left redirect to payment page.
m
Hi @Matthew Campbell, did you find a solution to this problem? Would love to find out what you did