wp-graphql-woocommerce icon indicating copy to clipboard operation
wp-graphql-woocommerce copied to clipboard

Payment Gateway API schema shape

Open kidunot89 opened this issue 6 years ago • 2 comments

Overview

  • WPInterface Type required
  • Mutations and Queries needed for customer-level functionality

kidunot89 avatar Apr 11 '19 05:04 kidunot89

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/

jake-101 avatar Jul 11 '19 03:07 jake-101

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

Raja0sama avatar Oct 14 '19 06:10 Raja0sama

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.

kidunot89 avatar Apr 20 '23 22:04 kidunot89