FILTER BY TAG

JavaScript Example: Client-Defined Trigger for
Click to Pay
or PAN Entry

When you display
CLICKTOPAY
or
PANENTRY
as allowed payment types, you can load the UI without displaying the
Unified Checkout
checkout button. You can do this by creating a trigger that defines what event loads the UI.
You can create a trigger only for
CLICKTOPAY
or
PANENTRY
payment methods:
//PAN Entry const trigger = client.createTrigger('PANENTRY'); //Click to Pay const trigger = client.createTrigger('CLICKTOPAY');
IMPORTANT
When you use the
client.createTrigger()
method for
Click to Pay
, you must create a custom UI. See Click to Pay UI Guidelines.