Managing Payment Methods
The Hyp Enterprise payment page supports several payment methods in addition to standard credit card payments:
Apple Pay
Google Pay
bit
Pay By Link (IPR)
Gift cards
Pinpad Cloud Pairing (PCP)
Account to account (A2A)
The exact set of payment methods available to you depends on your terminal settings.
By default, all available payment methods are displayed on the payment page. The standard credit card payment form is shown as the default option. You can customize this behavior by hiding specific methods or changing the default payment method.
Hiding payment methods
If you want to hide one or more payment methods from the payment page, you can do this in one of two ways:
To hide one or more payment methods, use the
paymentMethodsarray. To represent a payment method, add an object with two properties:typeandhidden. Thetypeproperty is the payment method type (applepay,googlepay,bit,iprfor Pay By Link,gcsfor gift cards,a2afor account to account, andpcpfor Pinpad Cloud Pairing), and thehiddenproperty indicates whether to hide the payment method or not. For example, to hide Apple Pay, account to account, and Pay By Link:<paymentPageData> <ppsJSONConfig> { "uiCustomData": { "paymentMethods": [ {"type": "applepay", "hidden": true}, {"type": "ipr", "hidden": true}, {"type": "a2a", "hidden": true} ] } } </ppsJSONConfig> </paymentPageData>To hide all payment methods and only keep the standard credit card payment, use the
skipPaymentMethodsScreenproperty. Instead of explicitly setting every payment method type to"hidden": trueunderpaymentMethods, you can just setskipPaymentMethodsScreentotrue:<paymentPageData> <ppsJSONConfig> { "uiCustomData": { "skipPaymentMethodsScreen": true } } </ppsJSONConfig> </paymentPageData>
Setting the default payment method
In some scenarios, you may want a specific payment method to be active by default when the payment page loads, instead of the credit card form. For example, if you are using a physical pinpad terminal, you want to open the pinpad pairing view immediately.
To define the default payment method, use the defaultPaymentMethod property in uiCustomData and set it to the type of payment method you want to preselect on the payment page. The supported values are:
creditcardfor the standard credit card form (default)applepayfor Apple Paygooglepayfor Google Paybitfor bitiprfor Pay By Linkpcpfor Pinpad Cloud Pairinga2afor Account to Account
Here's an example of how to set the default payment method to Apple Pay:
When a default payment method is set, the payment page skips the initial view with credit card fields and opens the specified payment method's view immediately.
If the chosen payment method is not supported in the customer's environment (for example, Apple Pay on a non-Apple device), the page falls back to showing the default set of available methods.
Payment method specific options
Some payment methods have additional configuration options that can be set within their respective objects in the paymentMethods array.
Pay By Link (ipr)
When using Pay By Link, you can use the autoSubmit property. If set to true, the payment page will automatically trigger the sending of the payment link SMS as soon as the page loads. This requires a phone number to be pre-populated in the request.
Gift cards (gcs)
Gift cards support several customization options, such as limiting the number of gift cards used in a single transaction or restricting which providers are allowed. For more details on these options, see the Gift Cards documentation.
Last updated
Was this helpful?