Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  1. To hide one or more payment methods, use the paymentMethods array. To represent a payment method, add an object with two properties: type and hidden. The type property is the payment method type (applepay, googlepay, bit, ipr for Pay By Link, gcs for gift cards, a2a for account to account, and pcp for Pinpad Cloud Pairing), and the hidden property 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>
  2. To hide all payment methods and only keep the standard credit card payment, use the skipPaymentMethodsScreen property. Instead of explicitly setting every payment method type to "hidden": true under paymentMethods, you can just set skipPaymentMethodsScreen to true:

    <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:

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.

The paymentMethods array is also used to show saved credit cards.

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?