【问题标题】:Paypal checkout - Identify customer / Append order IDPaypal 结帐 - 识别客户/附加订单 ID
【发布时间】:2020-08-17 04:24:33
【问题描述】:

我目前正在按照https://developer.paypal.com/docs/checkout/integrate/# 实施贝宝结帐

我可以发送付款等没问题。但是,我如何确定付款人?

 createOrder: function(data, actions) {
  // This function sets up the details of the transaction, including the amount and line item details.
  return actions.order.create({
    purchase_units: [{
      amount: {
          value: '1.0'
      }
    }]
  });
}

.create 不允许我附加订单 ID 或用户 ID。在贝宝仪表板中,我只能看到名称和金额。

【问题讨论】:

    标签: paypal checkout


    【解决方案1】:

    在你onApprove函数里面,在actions.order.capture(里面:

    console.log(data);
    

    信息将在那里为您服务。

    您可以在此处的演示中看到一个用于更改的示例:https://developer.paypal.com/demo/checkout/#/pattern/client

    【讨论】:

      猜你喜欢
      • 2020-09-19
      • 2016-07-06
      • 2011-12-21
      • 2020-12-06
      • 2011-03-17
      • 2016-08-24
      • 2014-03-03
      • 2020-04-09
      • 2014-12-29
      相关资源
      最近更新 更多