New to the community? Welcome! Please read our Community Rules and Guidelines
Hi misalbhimani, my understanding is that you would like to create orders via REST. You can then create an order which receive immediately the payment or authorizations (which you need to accept before to get the payment).
You can find here all the necessary documentation.
Hi, the question was "Is there an Approve API", ie how can we simulate customer going through smart payment. I could not find one, and it is indispensable. Otherwise one could try a phantomjs or something, but I could not get it working with paypal. This is a huge show stopper for automated testing. A hint of a solution would be much appreciated.
Hi, if you want to simulate the SmartPaymentButton you can create a Sandbox REST App and use that Sandbox client ID into the button:
Once your Smart Button is set to Sandbox then you can use a Sandbox buyer account to simulate payments. Once completed the test session you can just replace the clientID with a Live one.
But this is a manual test. If you need to automate a testing session then you need to build it externally from the PayPal API.
Thanks for the reply. Yes, that was my understanding. I've done that and browser interaction is fine, however I never managed to get it going with phantomjs. Don't get me wrong, but having an approve endpoint does not sound like a rocket science, other payment agents have a straight forward solutions that make life so much easier.