Steve
Steve

Reputation: 145

Use WooCommerce Gateway Externally

I've created a REST application that uses the WooCommerce REST API. I want to process credit cards through the WooCommerce gateway.

As far as I can tell, I can't just send the credit card number and everything with the order data to have it processed. Therefore, I'm thinking the way to do this is to charge the credit card then send the order to WC.

Is there a WC endpoint I can use to process the credit cards? Or how would I build one?

Upvotes: 3

Views: 594

Answers (2)

Steve
Steve

Reputation: 145

I decided for better or for worse the best approach was to build a standard WordPress REST endpoint for the purposes of posting an order that would include credit card data. This endpoint then uses the gateway object of InfusedWoo which takes over the credit card processing.

Upvotes: 1

Greg Burkett
Greg Burkett

Reputation: 1945

Unless things have changed over at WooCommerce, I don't believe they do any actual payment processing. You'd need to hook into an actual gateway, like PayPal, Stripe, Authorize.net, etc to capture payment. The Stripe gateway add-on is free, I believe, and pretty easy to work with.

Unless I'm misunderstanding your question?

Upvotes: 2

Related Questions