Paypal Integration in Corona App

Is it possible to integrate Paypal’s Express Checkout through a web view or something from within a Corona App?

There is a Mobile Express Checkout, but since Ansca doesn’t allow us to integrate Native libraries, that is not possible right now.

There is also this Mobile PayPal Payments Standard which I think can be used for the device’s browser.
I have absolutely no experience in integrating payment methods.
I’d love to hear some advice/suggestions on the same!

Any help is appreciated! [import]uid: 62560 topic_id: 28699 reply_id: 328699[/import]

I would use the webview which I am sure you can set up. It will look nice since it is auto formatted to the mobile version of Paypal’s site. However, the tricky part will be detecting when the payment is complete. You can do this by checking for the Paypal payment complete URL.which you can set yourself. If these are someone else’s products, ask them to set up the url.

[lua]local function webListener( event )
if event.url == “YOUR THANK YOU PAGE URL HERE” then
print(“Payment Complete”)
end
end
webView:addEventListener( “urlRequest”, webListener )[/lua]

Hoped this helped! [import]uid: 59735 topic_id: 28699 reply_id: 115704[/import]

@BoltVisual

Thanks a lot!

I just finished going through the Paypal docs.
The Paypal Website payments Standards looks very handy. That Would Probably suit us.

And thanks for the tip on completion URL.I just noted the completion Url option in the Paypal website.

Cheers! :slight_smile: [import]uid: 62560 topic_id: 28699 reply_id: 115715[/import]