Addons-server: Add Stripe Customer Portal to manage billing

Created on 30 Oct 2020  路  10Comments  路  Source: mozilla/addons-server

We could use Stripe Customer Portal to offload billing management to Stripe. This portal would allow us to have a nice webpage to update the card information or email for example (we can do more).

@jvillalobos I think we need this to allow our customers to update their card information in the future. If there is a payment issue, we could tell them to go back to the onboarding page and click the "Manage billing" button:

update: see below (link/button moved to DevHub edit page)

Then they would see this page (on Stripe):

Screenshot 2020-10-30 at 15 53 11

Stripe Customer Portal requires 2 URLs, though:

  • a Privacy Policy URL
  • a Terms of Service URL

For QA: only add-ons that are verified or sponsored should have the link to "manage billing on Stripe". In addition to that, the link should only appear when the subscription is active, which means it has been paid once (when the onboarding flow has been completed).

It shouldn't be possible to change the subscription or cancel it. It should be possible to change the email address or the billing information (credit card).

subscription p3 pull request ready verified fixed

All 10 comments

The page you linked to also mentions a Cancel option. Is that configurable? So far we've been working under the assumption that we would initiate cancellations.

Yes, it is configurable. The second screenshot shows no way to cancel as we discussed.

Okay, that sounds good.

If there is a payment issue, we could tell them to go back to the onboarding page and click the "Manage billing" button:

I would add a link to the sidebar in the extension edit page instead, below Manage Status & Versions.

Stripe Customer Portal requires 2 URLs, though:
a Privacy Policy URL

https://www.mozilla.org/privacy/websites/

a Terms of Service URL:

https://extensionworkshop.com/documentation/publish/firefox-add-on-distribution-agreement/

I would add a link to the sidebar in the extension edit page instead, below Manage Status & Versions.

Okay, something like this then?

Screenshot 2020-11-03 at 14 31 32

Yes, but with an upper case "B" in "Billing", please.

@willdurand

I could test this only with promoted addons that did not go through the payment process yet on AMO dev with FF82(Win10) (as expected, I get a 404 error for the older subscriptions when the Billing URL is clicked):

  • the Billing URL is available on edit product page after a first payment is done. Changing information about the card and e-mail address is possible. Navigating back and forth to this page is possible.

Billing Add-ons

Other things noticed:

  • the verified standard fee is 10$ per month. sponsored is 60$ per year. So right now I can set a custom onboarding rate per month for verified addons and per year for sponsored addons.
  • when making a first payment and try to cancel it: if I use the browser's back button to navigate back to dev hub from the Stripe page I won't see the error message so I always use the button displayed on that page. I think the gif below explains it better:

error with the back button

  • also in this scenario when the user cancels, but then repeats the payment steps and completes payment the admin offers details only about when payment was completed. "Link visited at" will is empty. If it's a problem with that let me know.

cancellation

* the verified standard fee is 10$ per month. sponsored is 60$ per year. So right now I can set a custom onboarding rate per month for verified addons and per year for sponsored addons.

This will be fixed soon (it should actually be fixed already

* when making a first payment and try to cancel it: if I use the browser's back button to navigate back to dev hub from the Stripe page I won't see the error message so I always use the button displayed on that page. I think the gif below explains it better:

yeah, that's normal.

should I see somewhere Privacy Policy and Terms of Service URL from #15878 (comment) ?

Yes, somewhere in the Customer Portal.

@willdurand

should I see somewhere Privacy Policy and Terms of Service URL from #15878 (comment) ?

Yes, somewhere in the Customer Portal.

Terms is https://stripe.com/en-ro/customer-portal/legal
Privacy is https://stripe.com/en-ro/privacy

Terms and Privacy

@ioanarusiczki I think it's somewhere else then :p Maybe when you update your information?

@willdurand Ah, yes! It's in Add payment method: "By adding a payment method, you agree to Ad ons - Dev's Terms of Service and Privacy Policy." The URLs redirect as expected.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

caitmuenster picture caitmuenster  路  5Comments

Juraj-Masiar picture Juraj-Masiar  路  6Comments

jvillalobos picture jvillalobos  路  7Comments

erosman picture erosman  路  6Comments

jvillalobos picture jvillalobos  路  3Comments