• Resolved believelody

    (@believelody)


    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)
  • Plugin Support Aashik P – a11n

    (@aashik)

    Hi there!

    Just a heads up that the extension was designed to specifically work with WooCommerce as a payment gateway.

    I want to build a REST route for handling payment using your plugin.

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello there,
    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

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.