【问题标题】:PayPal autofill the Credit Card detailsPayPal 自动填充信用卡详细信息
【发布时间】:2022-01-09 17:54:41
【问题描述】:

我正在使用 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 paypal-sandbox


    【解决方案1】:

    我也想填写信用卡号和有效期。有没有办法做到这一点?

    没有。 PayPal 的 SDK 按钮只能供客户在自己的设备上输入自己的支付信息(登录名或卡详细信息)

    另外,请注意,卡号和随附的到期日期是非常敏感的信息,通常不应被大多数系统存储,但在极少数情况下需要存储它们,必须采取严格的措施,包括 PCI D型SAQ

    【讨论】:

      猜你喜欢
      • 2013-04-09
      • 2021-02-22
      • 2021-12-14
      • 2016-08-04
      • 2013-04-03
      • 2015-07-22
      • 1970-01-01
      • 2017-02-17
      • 1970-01-01
      相关资源
      最近更新 更多