• Resolved Hammad Ahmad

    (@hammad6264)


    Hey, hope you will be fine. Actually I am using WC Rest Payment plugin in my wordpress site. I saw that the plugin was active, and the link was displaying in wp-json. I amm using stripe token. When I try to post my Info (payment_token, order_id, payment_method) from nodeJS to this link (https://millionairespeed.com/wp-json/wc/v2/process_payment). I get the error name: code”:401,”message”:”Order ID ‘order_id’ is required..
    Here is my code:

      var link = 'https://millionairespeed.com/wp-json/wc/v2/process_payment'; 
     this.http.post(link, order_id, payment_method)
     .subscribe(data => {
     console.log(data)
     })

    Please help me???

    • This topic was modified 5 years, 8 months ago by Hammad Ahmad.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author sk8tech

    (@sk8tech)

    Did you send the API using JSON Body?

    Thread Starter Hammad Ahmad

    (@hammad6264)

    Sorry, I did not understand your question. Can you guide me, how can I charge stripe payment through this plugin API in angular and NodeJS. I have successfully created stripe token and order id. This plugin API ( route and end point ) for stripe is showing in JSON code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WC Rest Payment’ is closed to new replies.