Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1325

Best way to have auto-renewal recurring payments

$
0
0

I am creating a website service that will allow users to pay either manually every month or with a recurring payment. I am designing my own website and using your PHP APIs. I will NOT be storing any payment details (credit card, bank accounts, etc) on my site/DB. Also, my base subscription fee will be $15/month, but for every email referral that becomes an active account they will get an automatic $1 off their base fee monthly. I have already worked out how to do a one time payment using square API with Payment Links. My challenge is the recurring auto-renewal payment option. Basically, the user will just have a checkbox that they can check which will trigger auto-renewals for their desired payment type. I was looking at using Subscription API, but that seems like it might get hard to manage due to the myriad of options the user could do:

  • If the user checks the auto-renewal and saves, start a subscription using current monthly rate.
  • If the user unchecks the auto-renewal and saves, cancel the current subscription.
  • If the user adds another email referrals (thus reducing monthly rate), update current subscription amount?
  • if the user changes the payment type and saves: Cancel current subscription, create new subscription with new payment type
    Here is a partial screen shot of my UI so you get the idea:

Is this the best way to manage this? Or do you have a better suggestion on how to handle auto renewals with variable amounts?

Thanks for your help in advance,

Curt

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1325

Trending Articles