wp-graphql / wp-graphql-woocommerce

Add WooCommerce support and functionality to your WPGraphQL server
https://woographql.com
GNU General Public License v3.0
633 stars 123 forks source link

Get Stripe's client_secret into FE #825

Closed RomualdasT closed 6 months ago

RomualdasT commented 6 months ago

At the moment it is impossible to use Stripe Payments with headless Woocommerce, because we don't have a way to get client_secret to use in stripe.ConfirmPaymet() method.

Have you guys never considered to create some endpoint to get such data?

Or am I missing something and it is possible to do other way?

kidunot89 commented 6 months ago

@RomualdasT At the moment of writing this, the WooCommerce Stripe Gateway, only accepts Stripe credentials like sources and token directly from the $_POST and doesn't support alternative methods or filters. Further any alternative approach should be addressed and maintained in within that plugin as it falls outside of the scope of WPGraphQL WooCommerce.