Skip to main content
Skip to main content

Testing Stripe Payment Gateway (Client side) for Paid Hotspot Access

**

  1. Create a new Captive Portal if it does not already exist. Networks -> Captive Portals -> New Captive Portal
  2. Enter Captive Portal Page Create a new Authentication Provider

IronWifi captive portal authentication provider creation screen

  • Set following values:Method: Paid Access****Transaction Processor: Stripe (client side)Public Key: pk_test_fdBnaoUKyc1Lh8w0szx39TawSecret Key: sk_test_jo8JrRySa9QFIHdUULVOYtoFStripe client-side payment configuration with public and secret keys
  1. Create a Paid Access Plan if not already exists: Click Add a planAdd new hotspot plan button in IronWifi console
  2. Create plans for both Expiration Time** and Traffic Data Unit TypeHotspot plan configured with expiration time unit typeHotspot plan configured with traffic data unit type
  3. Scroll up to and click Splash page URL link:Captive portal settings showing splash page URL link
  4. You should see the plans on the splash page, choose a plan and click “Pay”Captive portal splash page displaying available hotspot plans
  5. You should be redirected to the Stripe checkout page. Use the following card details for testing: Email: Any valid email you have access toCard Number: 4242 4242 4242 4242Expiry: 4/29CVC: 424Name: Any test nameCountry: Test with multipleZip: Any valid zip code
  6. Click “Pay”Stripe checkout page with test card details entered
  7. You should see successful login page:Successful payment confirmation and login page after Stripe checkout
  8. Go to Users Find the user you just created and open the profileUser profile in IronWifi console showing purchased plan attributes Scroll down to the attributes and ensure proper attributes are added. For time based plans, it should be set to Expiration Date and Value should be in accordance with what was purchased. For Data based plans, it should be DATA-Total-Bytes and Value should reflect what was purchased.