⌨️NICE Payments
NICE Payments payment window integration guideNICE
1. Configure NICE Payments PG settings
Refer to the NICE Payments settings page to configure the PG settings.

2. Request payment
To open the payment window, call JavaScript SDK IMP.request_pay(param, callback).
In PC browsers, callback is invoked after calling IMP.request_pay(param, callback). In mobile browsers, the page is redirected to m_redirect_url.
Key parameter description
pg *** **string
PG code
If not specified and this is the only PG setting that exists,
default PGis automatically set.If there are multiple PG settings, set to
nice.
pay_method *** **string
Payment method code
merchant_uid *** **string
Order ID
Must be unique for each request.
amount *** **integer
Payment amount
Must be an integer (not string).
niceMobileV2`` boolean
Option to enable new NICE mobile version (default: false)
escrow`` boolean
Ecrow option
You can use i'mport REST API to request billing key, request payment, and schedule payment.
Request one-time payment
To request a one-time payment, use the key-in REST API POST /subscribe/payments/onetime. The card information is not saved during this process.
Request billing key
To request a billing key, use the billing key request REST API POST /subscribe/customers/{customer_uid}.
Request billing key + initial payment
To request a billing key and initial payment, use the key-in REST API POST /subscribe/payments/onetime.
customer_uid: required for saving the billing key.
Request payment with billing key
After successfully getting the billing key and making the initial payment, the billing key is stored on the i'mport server mapped 1:1 with the specified customer_uid. For security reasons, the server cannot directly access the billing key. Subsequent payments can be requested by calling the repeat pay REST API (POST /subscribe/payments/again) with the customer_uid as follows:
3. Additional functions
Parameters
card_quota :
[]: Only immediate pay2,3,4,5,6: immediate, 2, 3, 4, 5, 6 month installment plans
Parameters
code: Credit card code (string)
quota: Installment plan. For immediate, set to 0. (integer)
Precautions
Some PGs do not support direct call to credit card company's payment windows for all Merchant IDs. You must check your Merchant ID with each PG for direct call support.
Parameters
card_code: Credit card code (string)
enabled: Option to enable the credit card (boolean)
Last updated
