PayGreen offers many ways for integration with hosted page and hosted fields. No matter your project, there is a way to integrate PayGreen in your payment flow.
The hosted page is the simplest way to integrate PayGreen. When you create a Payment Order the attribute [hosted_payment_url] contains a link to the hosted page handling the new payment order.
This hosted page offers all the PayGreen features like every payment methods, one click payment, 3DS handling... This is the fastest way to integrate PayGreen into your payment process.
You can redirect your customers to this link, they could proceed the payment according to your payment methods.
The hosted page may be integrated inside an Iframe but this is not officially supported
By default, a payment order is valid during 10 minutes. For example, you cannot send the direct link by mail to a customer.
If you want to invite your customers to proceed a payment through an asynchronous way (like mail) you must create a payment link. This link can be shared longer.
The integration of PayGreen in a native application (IOS, Android, even librairies like React Native) is possible while using the hosted page. Use the [hosted_payment_url] of the payment order's attribute in the response to redirect your customer outside the application through the native browser of the device
To handle the redirection after a payment, you can set the attributes [return_url] and [cancel_url]. Those attributes accept link as deep linking like myapp://payment/success
Thanks to hosted fields, you can integrate the card number, expiration and CVV fields directly into your interface exactly as if it were yours. This is the most transparent integration way. You can read more about the documentation here
Using OAuth methods inside your app is actually in beta, please refer to this reposity to learn how it works: https://github.com/PayGreen/pgjs-react-native
Updated about 1 month ago