wp-graphql / wp-graphql-woocommerce

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

Payment Gateway API schema shape #25

Closed kidunot89 closed 1 year ago

kidunot89 commented 5 years ago

Overview

jake-101 commented 5 years ago

This plugin (https://wordpress.org/plugins/wc-rest-payment/) kind of has it right but Stripe introduced the SCA-compliant PaymentIntent way of charging customers. https://stripe.com/docs/strong-customer-authentication

I think having a way to get the token from the server's installed payment plugin is a nice way to handle payments. Stripe, Paypal, and maybe Braintree?

Check out these links too for more inspiration or references of use cases:

https://www.joshuaiz.com/words/no-woocommerce-cart-api-no-problem https://scottbolinger.com/process-payments-woocommerce-rest-api/

Raja0sama commented 5 years ago

Something like a WordPress website link where it is secured to do would also work.

kidunot89 commented 1 year ago

This I've reached the best compromise possible with this PR #735 . Doesn't seem to be possible to create mutations for token creation that would supported by most payment gateway, but there is another solution for this I will demonstrate in the docs.