How does the Stripe payment gateway work for the WP Shopping Cart? How does the Stripe payment gateway work for the WP Shopping Cart? wordpress wordpress

How does the Stripe payment gateway work for the WP Shopping Cart?


I like to use Stripe for subscriptions but if you want to work it like a shopping cart I would do:

  1. Check if the Stripe customer exists by retrieving a customer
  2. If the customer exists then add all the items as a new invoice item
  3. If the customer does not exist, create the customer then add the invoice item

Just remember that you don't have to have a plan or a subscription for your customer.

Everything that you need to know can be found in the Stripe PHP documentation.

Good luck and happy coding