Skip to main content

Click to Pay

Paylands allows your business to offer Click to Pay as a payment method to securely obtain the customer's card data and process the transaction.

Configuration Steps

1. Access the Paylands panel.
2. Go to Settings → Alternative Methods → Click to Pay.
3. Configure the name and country of your business and the user information to be obtained according to your needs.

Click to Pay Integration

Once configured, customers will be able to pay with Click to Pay through your checkout.

Configuration via API

If your merchant is a partner, in addition to configuring Click to Pay from the panel you can do it for your merchants through the Configure Mastercard endpoint.

The request creates the Mastercard configuration of the merchant indicated in client_uuid if it did not have one, or updates it otherwise. The merchant must belong to the client making the request.

The configuration is split into two optional and independent blocks, so only the one to be configured may be sent:

  • click_to_pay: trade name that the user will see (dpa_name), merchant country (country_code) and data to be requested from the user (consumer_name_requested, consumer_email_address_requested, consumer_phone_number_requested, dpa_shipping_preference, dpa_billing_preference).
  • scheme_token: identifiers provided by Mastercard for tokenization (dpa_id, service_id).

When click_to_pay.dpa_name is sent, the merchant is registered in Click to Pay and Mastercard returns the dpa_id, which Paylands stores and returns in the response. If the name does not change with respect to the one already registered, the registration is not repeated.

Example

{
"signature": "121149a0ba5361191d740fa898784a8b",
"client_uuid": "8dc780e8-c311-4791-a47f-c1a272ffbb87",
"click_to_pay": {
"dpa_name": "Jhon Doe SL",
"country_code": "ESP",
"dpa_shipping_preference": "NONE",
"dpa_billing_preference": "NONE",
"consumer_name_requested": false,
"consumer_email_address_requested": false,
"consumer_phone_number_requested": false,
"is_enabled": true
}
}