After you have set up your skin, set up a payment session using a generated URL, for example for a browser redirect (HTTP status code 302) for the shopper as a standard HTML form. Use this payment session to transfer the shopper to the HPP. To avoid tampering with payment session data, data traffic it is cryptographically signed using a shared secret.
- Not all browsers can handle long URLs. For example, Microsoft Internet Explorer cannot handle URLs that are longer than 2083 characters. It is your responsibility to ensure that this limit is not exceeded.
- All parameters and their values should be URL-encoded using UTF-8 character encoding, as per W3C recommendation.
A shopper makes an order for a total amount payable of GBP 100. The order reference in your backoffice is Internet order 12345.
The order details are:
- Goods shipping date to the shopper: before or not later than October 20th, 2016.
- Order summary information to display on the payment review page for the order: 1 digital camera.
- Shopper's locale is British English.
- The skin you want to use to style the HPP is 4aD37dJA.
- The merchant account you are using is TestMerchant.
- The order was placed before or on October 11th 2016, 10:30 am.
- You want the payment offer to expire on October 11th 2016, 11:00 am.
This example represents a complete payment session, based on the order details above.
Some payment methods restrict WebView in the app for security reasons. We recommend using the following if you want to display local payment method in your app:
- iOS: SFSafariViewController ( https://developer.apple.com/reference/safariservices/sfsafariviewcontroller )
- Android: Chrome Custom Tabs ( https://developer.chrome.com/multidevice/android/customtabs )