https://github.com/razerms/encryption-razerms_client_side_encryption
The Client-Side Encryption (CSE) integration lets you accept payments on your website while encrypting card data in your shopper's browser using the RMS encryption library.
https://github.com/razerms/encryption-razerms_client_side_encryption
client-side-encryption payment payments razerms
Last synced: 8 months ago
JSON representation
The Client-Side Encryption (CSE) integration lets you accept payments on your website while encrypting card data in your shopper's browser using the RMS encryption library.
- Host: GitHub
- URL: https://github.com/razerms/encryption-razerms_client_side_encryption
- Owner: RazerMS
- Created: 2019-07-05T07:47:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-31T07:47:25.000Z (about 4 years ago)
- Last Synced: 2025-01-29T07:41:48.770Z (over 1 year ago)
- Topics: client-side-encryption, payment, payments, razerms
- Homepage: https://merchant.razer.com/v3/
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Encryption] – RazerMS Client-Side-Encryption
The Client-Side Encryption (CSE) integration lets you accept payments on your website while encrypting card data in your shopper's browser using the RMS encryption library.
## Before you begin
1) Make sure you have our merchant account.
2) Get your public key from RMS.
## Client Side
Start by creating a payment form integrated with the Client-Side Encryption (CSE) library. Ensure that your payment form includes the mandatory fields. You may replace the `[payment_action]` with your payment process URL and `[public_key]` with public key provided from RMS.
To ensures that the call does not send unencrypted card data to your server, you must encrypt card input fields by annotating them with the `data-encrypted-name` attribute.
**Do not** use the `name` attribute.
```html
$(document).on("submit", "form", function (e) {
if(creditCardValidation() == true) {
var pub = "[public_key]";
var encForm = CSE.encrypt( pub );
encForm.onSubmitEncryptForm('payment-form');
} else {
e.preventDefault();
}
})
```
## Server Side
From server, make an HTTP POST request to our Direct Server API endpoint. Please refer to our Direct Server API for payment request and response.
## Resources
- GitHub: https://github.com/RazerMS
- Website: https://merchant.razer.com/
- Twitter: https://twitter.com/Razer_MS
- YouTube: https://www.youtube.com/c/RazerMerchantServices
- Facebook: https://www.facebook.com/RazerMerchantServices/
- Instagram: https://www.instagram.com/RazerMerchantServices/
Issues
------------
Submit issue to this repository or email to our support-sa@razer.com
Support
-------
Merchant Technical Support / Customer Care : support-sa@razer.com
Sales/Reseller Enquiry : sales-sa@razer.com
Marketing Campaign : marketing-sa@razer.com
Channel/Partner Enquiry : channel-sa@razer.com
Media Contact : media-sa@razer.com
R&D and Tech-related Suggestion : technical-sa@razer.com
Abuse Reporting : abuse-sa@razer.com