{"id":22097285,"url":"https://github.com/razerms/encryption-razerms_client_side_encryption","last_synced_at":"2025-10-20T07:35:19.513Z","repository":{"id":75390842,"uuid":"195364090","full_name":"RazerMS/Encryption-RazerMS_Client_Side_Encryption","owner":"RazerMS","description":"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.","archived":false,"fork":false,"pushed_at":"2022-03-31T07:47:25.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T07:41:48.770Z","etag":null,"topics":["client-side-encryption","payment","payments","razerms"],"latest_commit_sha":null,"homepage":"https://merchant.razer.com/v3/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RazerMS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-05T07:47:02.000Z","updated_at":"2022-03-31T07:46:49.000Z","dependencies_parsed_at":"2023-05-05T02:58:42.911Z","dependency_job_id":null,"html_url":"https://github.com/RazerMS/Encryption-RazerMS_Client_Side_Encryption","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RazerMS%2FEncryption-RazerMS_Client_Side_Encryption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RazerMS%2FEncryption-RazerMS_Client_Side_Encryption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RazerMS%2FEncryption-RazerMS_Client_Side_Encryption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RazerMS%2FEncryption-RazerMS_Client_Side_Encryption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RazerMS","download_url":"https://codeload.github.com/RazerMS/Encryption-RazerMS_Client_Side_Encryption/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245191692,"owners_count":20575262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-side-encryption","payment","payments","razerms"],"created_at":"2024-12-01T04:14:41.065Z","updated_at":"2025-10-20T07:35:14.491Z","avatar_url":"https://github.com/RazerMS.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# [Encryption] – RazerMS Client-Side-Encryption\n\u003cimg src=\"https://user-images.githubusercontent.com/38641542/157029625-e07deaa8-3adb-472f-a0e6-eb359d7a7636.jpg\"\u003e\nThe 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.\n\n## Before you begin\n1) Make sure you have our merchant account.\n2) Get your public key from RMS.\n\n## Client Side\nStart 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.\n\nTo 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.  \n**Do not** use the `name` attribute.\n\n```html\n\u003cscript src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://sandbox.merchant.razer.com/RMS/API/cse/checkout.js\"\u003e\u003c/script\u003e\n\u003cform action=\"[payment_action]\" method=\"POST\" id=\"payment-form\"\u003e\n  \u003cinput type=\"text\" size=\"20\" class ='cc-number' data-encrypted-name=\"PAN\" placeholder=\"CC NUM\" maxlength=\"19\" required/\u003e\n  \u003cinput type=\"text\" size=\"20\" class='cc-cvv' data-encrypted-name=\"CVV\" placeholder=\"CVV\" maxlength=\"3\" required/\u003e\n  \u003cinput type=\"text\" size=\"20\" class='cc-expiry' data-encrypted-name=\"EXPIRY\" placeholder=\"MM/YYYY\" maxlength=\"7\" required/\u003e\n  \u003cinput type=\"submit\" value=\"Pay\"\u003e\n  \u003cdiv id='errorMsg'\u003e\n  \u003c/div\u003e \n\u003c/form\u003e\n\u003cscript type=\"text/javascript\"\u003e\n  $(document).on(\"submit\", \"form\", function (e) {\n    if(creditCardValidation() == true) {\n      var pub = \"[public_key]\";\n      var encForm = CSE.encrypt( pub );\n      encForm.onSubmitEncryptForm('payment-form');\n    } else {\n      e.preventDefault();\n    } \n  })\n\u003c/script\u003e\n```        \n## Server Side\nFrom server, make an HTTP POST request to our Direct Server API endpoint. Please refer to our Direct Server API for payment request and response.\n\n\n## Resources\n\n- GitHub:     https://github.com/RazerMS\n- Website:    https://merchant.razer.com/\n- Twitter:    https://twitter.com/Razer_MS\n- YouTube:    https://www.youtube.com/c/RazerMerchantServices\n- Facebook:   https://www.facebook.com/RazerMerchantServices/\n- Instagram:  https://www.instagram.com/RazerMerchantServices/\n\n\nIssues\n------------\n\nSubmit issue to this repository or email to our support-sa@razer.com\n\n\nSupport\n-------\n\nMerchant Technical Support / Customer Care : support-sa@razer.com \u003cbr\u003e\nSales/Reseller Enquiry : sales-sa@razer.com \u003cbr\u003e\nMarketing Campaign : marketing-sa@razer.com \u003cbr\u003e\nChannel/Partner Enquiry : channel-sa@razer.com \u003cbr\u003e\nMedia Contact : media-sa@razer.com \u003cbr\u003e\nR\u0026D and Tech-related Suggestion : technical-sa@razer.com \u003cbr\u003e\nAbuse Reporting : abuse-sa@razer.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazerms%2Fencryption-razerms_client_side_encryption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazerms%2Fencryption-razerms_client_side_encryption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazerms%2Fencryption-razerms_client_side_encryption/lists"}