[英]PayPal autofill the Credit Card details
我正在使用 PayPal 信用卡,我正在嘗試使用他們的代碼填寫表格:
paypal.Buttons({
style: {
layout: 'vertical',
shape: 'rect',
height: 36
},
createOrder: function (data, actions) {
return actions.order.create({
//https://developer.paypal.com/docs/checkout/integration-features/standard-card-fields/
payer: {
name: {
given_name: "PayPal",
surname: "Customer"
},
address: {
address_line_1: '123 ABC Street',
address_line_2: 'Apt 2',
admin_area_2: 'San Jose',
admin_area_1: 'CA',
postal_code: '95121',
country_code: 'US'
},
email_address: "customer@domain.com",
phone: {
phone_type: "MOBILE",
phone_number: {
national_number: "14082508100"
}
}
},
application_context: {
shipping_preference: 'NO_SHIPPING'
},
purchase_units: [{
description: getPurchaseDescription(),
amount: {
value: $("#Amount").val()
}
}]
});
},
效果很好,但我也想填寫信用卡號和到期日。 有沒有辦法做到這一點? 我試過了
card: {
number: "378282246310005"
}
但是信用號沒有填寫。
謝謝。
我也想填寫信用卡號和有效期。 有沒有辦法做到這一點?
不可以。 PayPal 的 SDK 按鈕只能由正在輸入自己的支付信息(登錄或卡詳細信息)的客戶在自己的設備上使用
此外,請注意,卡號和隨附的到期日期是非常敏感的信息,通常不應該被大多數系統存儲,但在極少數情況下存儲它們是有意義的,必須采取嚴格的措施,包括 PCI SAQ 類型D
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.