Documentation You are here: start » gateways » stripe

This is an old revision of the document!


type:
gateway
name:
Stripe Connect
countrie:
AU, AT, BE, CA, DK, FI, FR, DE, HK, IE, IT, JP, LU, NL, NZ, NO, PT, SG, ES, SE, CH, GB, US, BR, MX
support-added:
2.0.0
supports-3dsecure:
yes
supports-multicurrency:
yes
gateway:
http://stripe.com/

Stripe

Setting Up Stripe Connect for FoxyCart

  1. Create your account here.
  2. Go to the Payment Settings page in the FoxyCart administration.
  3. Once logged in, make sure your store is set to “Live Servers”
  4. Go to the Accept payments using your Stripe connect account option, check the box, and click the Connect to Stripe button.
  5. Follow the instructions that appear.
  6. Once returned to the Foxy admin with Stripe successfully connected, enable the Show Credit Card form option​ if it isn't already and save the configuration. This option will show the credit card entry on the Foxy checkout. If you're already using an integration that shows a credit card input on the checkout, you'll need to disable that in order to show the Stripe credit card input.

Please note that when using the Stripe Connect option, you won't be able to have a gateway enabled under the Let Customers Pay with a Credit or Debit Card option, since the Stripe Connect option shows a credit card form within the checkout already, and only one is allowed on the checkout at a time.

Migrating from previous Stripe integrations or other gateways to Stripe Connect

If your store is currently making use of one of our existing Stripe integrations, or with another debit/credit card based payment gateway, you will need to update your store to switch over to the new Stripe Connect integration. You can follow these steps to complete that.

  1. Log in to your store's Foxy administration and head to the payments page. If you're using an existing Stripe integration or other card payment gateway, you will have the “Let customers pay with a Credit or Debit Card” option selected, with your current gateway set in the dropdown. Note that if you have multiple payment sets that you will be updating to Stripe Connect, we recommend updating them one at a time.
  2. Leave the “Let customers pay with a Credit or Debit Card” option enabled and set as it is for now.
  3. Further down the page, look for the checkbox labelled “Accept payments using your Stripe connect account”. Enable this option.
  4. Click the “Connect to Stripe” button within the option. This will redirect you to Stripe to sign in to your Stripe account and authenticate Foxy to interact with your account. After completed this, you will be redirected back to your Foxy administration.
  5. Once redirected back to the checkout, you should see Stripe Connect enabled, but the “show credit card form” unchecked for now.
  6. If you have existing customer accounts or subscriptions on your store stop at this point, and click the “Request customer migration” button to request your saved customer details to be migrated to Stripe. This will send an email to our support team and we'll follow up when the migration has been completed.
  7. If you don't have saved customers or subscriptions, or once our support team has confirmed the migration is complete - on the payments page in the admin, uncheck the option for “Let customers pay with a Credit or Debit Card” and check the “show credit card form” checkbox within the Stripe Connect options and save the page.

At this point, your store has been successfully updated to use our Stripe Connect integration.

If you have set your checkout template to “Custom Template”, and embedded the raw checkout.inc.twig template directly, or have embedded the payment_method Twig block, you will need to update your checkout template with some new code for Stripe Connect. You can reference the current iteration of the checkout template on Github here.

Supported Countries

Stripe is continually expanding the countries that they support. The good news is, FoxyCart's existing Stripe integration should support any new countries that they do add support for. For a list of the countries that Stripe currently support, see this page on their site.

Testing

Obtaining a Test Account

For configuring a test account with Stripe Connect, you can simply complete the same process as detailed above, but leaving your payment servers set to “Test Servers”. When you click to connect to Stripe, on the following page will be an option at the top of the page to “Skip this step”, which will bring you back to Foxy with a test Stripe account connected and ready to use.

Test Card Numbers

You can use 4242424242424242 to simulate successful card validations in test mode (this number fails in production of course).

Technically, any card number that passes the Luhn Check will validate successfully in test mode – this includes real credit card numbers. You might not want to use real card numbers while testing though, to avoid accidentally checking them into your codebase.

The following are also true in test mode:

  • All 3 or 4 digit numbers pass as valid CVCs.
  • All future expiration dates are considered valid.

To simulate the 'Card Declined' error use this special card number - 4000000000000002.

Troubleshooting & Interpreting Response Codes

Contact stripe for info. Know more? Feel free to edit this page with info.

User Notes and Experiences

If you have tips, experience, or helpful notes related to this gateway that would benefit others, please add them below, including your name and the date. We reserve the right to edit or remove comments that don't add value to this page.

Site Tools