Payments [Stripe]

Subscriptions Payments are supported out of the box in LaunchStack, all you need to do it's add your plans inside the file config/launchstack.php and set up your .env file.

# Stripe
STRIPE_KEY=pk_test_28YpPevvtsgQsuk9I3XdQ6dT
STRIPE_SECRET=sk_test_h2uTKRYUMY2JprSOgL3vAwRp
STRIPE_WEBHOOK_SECRET=

# Plans
STRIPE_PRICE_ID_TIER_01=price_111
STRIPE_PRICE_ID_TIER_02=price_222
STRIPE_PRICE_ID_TIER_03=price_333

'billing' => [
    'plans' => [
        [
            'name' => 'Tier 1',
            'price' => 9,
            'trialDays' => 7,
            'stripeId' => env('STRIPE_PRICE_ID'),
            'description' => "",
            'features' => [
                'Feature 1',
                'Feature 2',
                'Feature 3',
                'Feature 4'
            ]
        ],
        // your plans
    ]
]

Some valid credit cards for testing, more info at Stripe Documentation.

Visa

Card: 4242424242424242
Date: Any future date
CVV: Any 3 digits

MasterCard

Card: 5555555555554444
Date: Any future date
CVV: Any 3 

Last updated