Stripe Checkout


Setup

To setup Stripe, you will need API secret key and API publishable key.

To get these, please follow the steps below:

  1. Log in to your Stripe account
  2. Click “Developers” from the top left menu item of the page
  3. Click the “API Keys” submenu item

If you toggled “Viewing testing data“, Stripe will show the test keys, otherwise, the live keys will be shown, for production you will need the “Live Secret Key” and “Live Publishable Key“, for testing you will need the “Test Secret Key” and “Test Publishable Key”

Stripe API keys

Testing

If you want to test the Stripe integration with your test API keys, you must enable Test Mode from Setup -> Settings -> Payment Getaways -> Stripe Checkout

After you enable the test mode and enter your test API keys, you can perform the following steps:

  1. Create a dummy customer.
  2. Create an invoice under the customer you created before and in the Allowed Payment Modes make sure that you select Stripe
  3. View the invoice as a customer, while previewing the invoice in the admin area click More->View Invoice as Customer.
  4. Scroll to the bottom and select Stripe and click Pay Now
  5. If you need test credit cards, you can read more in the Stripe testing guide page

Keep in mind that once you make the first payment with Stripe under your dummy customer (or any other customer), the system will create a separate customer in Stripe dashboard and will store the customer id inside the system database, this ID will be used for future payments and the credit card you entered the first time will be used as default source for this customer.

After you disable testing mode and change the API keys to production, the customer you created for testing purposes won’t work anymore with the production API keys, means that you won’t be able to perform tests again with this customer with your production keys, you should delete this customer because the script won’t be able to fetch this customer from Stripe because the customer ID is actually from the testing data not from production data.


Did you find this article useful?



  • 2Checkout

    2Checkout Setup SSL is required if you’re using the 2Checkout payment API. It is required to safely call the tokenization and author...

  • Authorize.net

    Authorize.net We currently support 2 integrations for Authorize.net. AIM – Advanced Integration Method (An SSL certificate ...

  • Braintree

    To configure Braintree payment method in Perfex CRM, you will need to obtain Merchant ID, Public Key and Private Keyfrom Braintree, to ...

  • Mollie

    Offer your customers the payment methods Creditcard, SOFORT Banking, iDEAL, Bancontact, Bank transfer, SEPA Direct Debit, PayPal, Bitcoin, PODIUM Ca...

  • Paypal

    To setup Paypal you will need API permissions. PayPal API Username PayPal API Password API Signature Follow the steps below to get the API per...