# JS-SDK CDN & API Endpoints
# CDN
DEVELOPMENT
<script src="https://cdn.directpay.lk/dev/v1/directpayCardPayment.js?v=1"></script>
# Endpoint
DEVELOPMENT
https://dev.directpay.lk/v1/mpg/api/external/cardManagement
PRODUCTION
https://prod.directpay.lk/v1/mpg/api/external/cardManagement
# How to Integrate
Card Add
(URL: https://developer.directpay.lk/ - in the ‘integration’ tab)
(URL: https://developer.directpay.lk/ - In the ‘Transactions’ tab). (Manual insertion of 'refCode' is only done in Sandbox testing).
(Manual insertion of 'customerEmail' is only done in Sandbox testing).
(URL: https://developer.directpay.lk/#/ - in the ‘Integration’ tab)
(URL: https://doc.directpay.lk/userWiseCard/cardAdd.html - in the ‘Home’ tab).
Card List
(URL: https://developer.directpay.lk/#/ - in the ‘integration’ tab)
Your api-key is provided in your account. (URL: https://developer.directpay.lk/#/ under the ‘integration’ tab)
Signature will be generated by running the 'Signature generate' script below.
Please download the private key from (URL: https://developer.directpay.lk/ and link the file to the '$pkeyid' variable.
(localhost Ex: www directory in wamp server or htdocs in xampp)
(URL: https://doc.directpay.lk/userWiseCard/cardAdd.html - in the ‘Home’ tab).
Card Delete
(URL: https://developer.directpay.lk/ - in the ‘integration’ tab)
Your api-key is provided in your account. (URL: https://developer.directpay.lk - under 'Integration' tab)
Please downloa your private key from (URL: https://developer.directpay.lk/ and link the file to the '$pkeyid' variable.
(URL: https://doc.directpay.lk/userWiseCard/cardAdd.html - in the ‘Home’ tab).
Payments using selected card
Your api-key is provided in your account. (URL: https://developer.directpay.lk/ under the 'Integration tab')
(URL: https://developer.directpay.lk/ and link the file to the '$pkeyid' variable.
(URL: https://doc.directpay.lk/userWiseCard/cardAdd.html - in the ‘Home’ tab).