Step 05: In the Payment Integration section, you will see two options – Stripe and Razorpay. Decide which payment gateway fits your needs:
Note: Guide to Setup Stripe (Getting API Key, API Secret Key and Webhook Secret Key)
Step 06A: Go to the Stripe and access Test Mode
Step 06B: Get Your Test API Keys
o Publishable key – To be pasted against API Key (starts with pk_test_)
o Secret key (starts with sk_test_)
Step 06C: Add Webhook Destination
o Events to send: Select relevant events:
checkout.session.completed
payment_intent.succeeded
o Webhook endpoint: Enter the server's webhook URL
QA Environment:
https://qa-api.hostexam.net/api/payment/webhook/
Production Environment:
https://api.hostexam.net/api/payment/webhook/
o Click “Create Destination”
Step 06D: Get Your Webhook Signing Secret
Click on the newly created webhook
Click “Reveal” under the Signing secret
Copy the secret (e.g., whsec_XXXXXXXXXXXXXXXXXXXX)
Stripe Test Card Numbers
Use these test card numbers when testing the payment form:
Card Type |
Number |
Exp. Date |
CVC |
Visa |
4242 4242 4242 4242 |
Any future date |
Any 3 digits |
Fails |
4000 0000 0000 0002 |
Any future date |
Any 3 digits |