mozilla / fxa

Monorepo for Mozilla Accounts (formerly Firefox Accounts)
https://mozilla.github.io/ecosystem-platform/
Mozilla Public License 2.0
597 stars 210 forks source link

Users can have access to the VPN even if they paid with a card not issues in the US #4019

Closed bsurd closed 4 years ago

bsurd commented 4 years ago

Affected versions:

Affected Platforms:

Preconditions

Steps to reproduce

  1. Open the VPN page and
  2. Click on the Subscribe Now button and complete the subscription process using a credit card number outside of the US. (eg. 6200-0000-0000-0005)
  3. Go back to the VPN page and click on the subscribe now button.

Expected result:

Actual result:

GIF

┆Issue is synchronized with this Jira Bug ┆Issue Number: FXA-1012

data-sync-user commented 4 years ago

➤ Wil Clouser commented:

The staging server doesn't have the radar rules in it.  Let's try checking this on the production test account.  Ben will help with that process.

bsurd commented 4 years ago

Another issue noticed here is that if the user never clicks on the No thanks, just take me to my product. hyperlink, the Subscribe Now is still displayed in the FPN page. After clicking the hyperlink the Download Now button is displayed.

This should also be checked in production.

image

lmorchard commented 4 years ago

Another issue noticed here is that if the user never clicks on the No thanks, just take me to my product. hyperlink, the Subscribe Now is still displayed in the FPN page

That's really weird - the "no thanks" link shouldn't actively do anything. Doesn't submit any data or change any state. It's just a link to a page.

data-sync-user commented 4 years ago

➤ Benjamin Bangert commented:

The credit card number you entered is a US test card. I tested locally and verified that the test cards from other regions are not allowed. The international test numbers are here:

https://stripe.com/docs/testing#international-cards

data-sync-user commented 4 years ago

➤ Benjamin Bangert commented:

To follow up, I have reproduced this behavior. The UX shows that the card didn't work properly, but when refreshing it, the page says the subscription is active.

johngruen commented 4 years ago

Is this coming from our staging stripe instance? I can add the radar rule there to retest?

data-sync-user commented 4 years ago

➤ Benjamin Bangert commented:

It's not a radar rule issue, the radar rule is properly handled. The issue is that when a subscription is denied in this manner, it leaves a fairly complete appearance of a subscription in Stripe (marked as incomplete). The page-load is apparently recognizing this incomplete subscription as a valid one and then bouncing the user back saying they're active, when they're actually not active.

bsurd commented 4 years ago

This issue has been verified and is no longer reproducing in the latest environment.

@bbangert Could we change the 6200 0000 0000 0005 test card to appear as it's issued in the US? This is technically used to test that payments from UnionPay are possible and have no other card listed in the https://stripe.com/docs/testing#cards for this brand/type of card.

lmorchard commented 4 years ago

Could we change the 6200 0000 0000 0005 test card to appear as it's issued in the US?

I don't think we have any ability to alter test cards - those are defined by Stripe themselves, we don't manage them or their effects