Get a billing key through the payment window provided by the PG.
You can enter the card information through the PG's payment window to get a billing key.
Pros: no need to establish additional security process for transmitting card information because the data is transmitted directly to PG without going through the server or i'mport server.
Cons: cannot customize card registration form since billing key is requested through the PG's payment window via web browser (cannot implement merchant site friendly UI/UX).
Sample PG's window for card info entry
STEP 01. Request billing key
As with authenticated payment, use the JavaScript SDK to call the PG's payment window. To get a billing key, specify the following additional parameters.
customer_uid: unique key that maps 1:1 with billing key
What is a customer_uid?
It is a unique value specified by the merchant that maps 1:1 with the billing key issued by PG. A unique customer_uid must be created for each card.
Example: If a customer named Hong Gildong requests for a billing key from A card, the customer_uid must be issued for the specified member's credit card number
STEP 02. Handle response
Once the billing key is issued successfully, the customer_uid is sent to the merchant server. The server creates an API endpoint that receives the customer_uid from the client. The server can use the customer_uid to request future payments.
Save the customer_uid in the merchant's database and use it to request future payments.