我正在使用Braintree作爲支付網關。
我有一個要求,我只需要存儲信用卡的最後4位數字,到期日期(根據PCI Complaince)。
我已經在JavaScript中實現了前端代碼,並將數據發送到服務器,信用卡信息被加密。
無論如何,我可以得到後四位數字,失效日期和卡類型,或者我可以解密它嗎?我只需要存儲信用卡的最後4位數字
<form name="paymentForm" action="/createtransaction" method="post" id="braintree-payment-form">
<p>
<label style="color:white">Card Number</label>
<input type="text" size="20" ng-model="userDetails.number" autocomplete="off" data-encrypted-name="number" />
</p>
<p>
<label style="color:white">CVV</label>
<input type="text" size="4" ng-model="userDetails.cvv" autocomplete="off" data-encrypted-name="cvv" />
</p>
<p>
<label style="color:white">Expiration (MM/YYYY)</label>
<input type="text" size="2" ng-model="userDetails.month" data-encrypted-name="month" />/<input type="text" size="4" ng-model="userDetails.year" data-encrypted-name="year" />
</p>
<input type="submit" id="submit" />
這篇文章表明,有幾個不同的流量,你可以採取:https://www.braintreepayments.com/braintrust/client-side-encryption。你在使用哪一個? – Sid
我正在使用客戶端加密 – Abhishek