I am working on an ionic 2 application, which is basically a shopping cart with Woocommerce as a backend. REST was pretty good with the REST API: I can browse products and create orders for the customer in the application.
But now I'm stuck in processing payments. The application will only use PayPal, and there is a PayPal plugin that I would like to use. I have not tested it, but it looks pretty simple: you pass the purchase details (price, currency, description ...), and then render the PayPal user interface.
I can provide all this information in the PayPal user interface, but it has an obvious question: how do I integrate it with the corresponding Woocommerce order? How to make a payment successful, Woocommerce registers it as such?
Woocommerce installation already includes PayPal. You can use PayPal on the website just fine.
Now I'm sure this has something to do with PayPal's IPN. Accepting a wild assumption, perhaps I need to somehow transfer the order identifier to the PayPal plugin so that IPN transfers the same Woocommerce order identifier? Something like that may be possible, but I cannot find the correct documentation about it.
If you search for โionic 2 woocommerce paypalโ, you'll see a lot of people selling source code pretty much for the same purpose. I could buy it and study it, but itโs better to find documentation about this particular action.
source
share