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
element
and find the Stripe payment method, then click the link. - Click on
requestinstructionsform
. - Click the
requestpaymentinstructionsaction
button. - Write down the
client_secret
andcustomer_id
values.
- 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_secret
value from step 1.9. - Click “Start”.
- Fill in the payment details and click "Submit".
- Write down the
payment_method
value.
- Go back to Cortex Studio.
- Click "Back" twice on your browser.
- Click on
paymentinstrumentform
. - In the
customer_id
field, enter thecustomer_id
value from step 1.9. - In the
display-name
field, enter any value, such as “Test Card”. - In the
payment_method_id
field, enter thepayment_method
value 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.