Testing the Plugin
After you configure and activate the Stripe plugin, you can test that the plugin works by making a purchase.
- Browse to Cortex Studio.
- Authenticate as a public user
- Add an item to cart.
- Add an email address.
- Add a billing address.
- Click on
paymentmethodinfo. - Zoom into
elementand find the Stripe payment method, then click the link. - Click on
requestinstructionsform. - Click the
requestpaymentinstructionsactionbutton. - Write down the
client_secretandcustomer_idvalues.
- Browse to the Elastic Path Stripe Payment Flow test harness.
- In “Public API Key”, enter the "Publishable key" as determined in Account Options.
- In “Client Secret ID”, enter the
client_secretvalue from step 1.9. - Click “Start”.
- Fill in the payment details and click "Submit".
- Write down the
payment_methodvalue.
- Go back to Cortex Studio.
- Click "Back" twice on your browser.
- Click on
paymentinstrumentform. - In the
customer_idfield, enter thecustomer_idvalue from step 1.9. - In the
display-namefield, enter any value, such as “Test Card”. - In the
payment_method_idfield, enter thepayment_methodvalue from step 2.5. - Click on
createpaymentinstrumentaction. - Complete the purchase.
- Browse to the Stripe Dashboard.
- Click the “Payments” option at the top of the page.
- The first payment in the list should be the one you just created.