Make a API route using this plugin for Single Page Application
-
Hi, I’m using WordPress as backend. I want to build a REST route for handling payment using your plugin. Can you tell me please a step by step process to achieve this functionality ?
For example, in frontent, user clicks on “buy” which trigger a POST request (capture charge for stripe) to wordpress.
In my function on server, how can I handle payment request ?
– Use an action hooks or a class ? Which ones ?
– What else before trigger a process_payment method ?
– Which informations I need to perform a basic payment ? Token_id, payment_intent_id, payment_method_id, order_id ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Make a API route using this plugin for Single Page Application’ is closed to new replies.