PayPal Checkout订单v2自动填充帐单地址

问题描述

我正在创建一个PayPal Checkout按钮,有什么方法可以在“借记卡”或“信用卡”表格中自动填写账单地址吗?

see screenshot

我当前的代码:

  paypal.Buttons({
    createOrder: function(data,actions) {
                  return actions.order.create({
            purchase_units: [{
          amount: {
            value: '1'
          }
    }],});
    }
  }).render('#paypal-button-container');

解决方法

有一个在Standard Card Fields - Optimizing the card fields中传递地址的完整示例

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...