0
我刚刚使用RestAPI和以下SDK示例完成了我的PayPal付款。使用PayPal执行付款之前获取地址RestAPI
优先(获取发送客户的贝宝URL) https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/payments/CreatePaymentUsingPayPal.php
末(返回链接到我的授权客户服务器) https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/payments/ExecutePayment.php
在最后的意见,是有关增加更多的成本信息根据送货地址,但我不知道如何得到。
// ### Optional Changes to Amount
// If you wish to update the amount that you wish to charge the customer,
// based on the shipping address or any other reason, you could
// do that by passing the transaction object with just `amount` field in it.
// Here is the example on how we changed the shipping to $1 more than before.
顺便说一句,当我执行支付我只得到了客户的地址,然后我得到的祈祷,对象$ result->付款人
$result = $payment->execute($execution, $apiContext);
我怎样才能得到付款人在根据客户的地址执行检查运输成本之前?
谢谢。