在使用 REST api for paypal 创建付款时尝试发送单独的帐单和送货地址。
我可以成功创建收货地址:
$shipping_address = new ShippingAddress();
$shipping_address->setCity('XXXXXX');
$shipping_address->setCountryCode('XX');
$shipping_address->setPostalCode('111111');
$shipping_address->setLine1('9811 XXXXXX Lane');
$shipping_address->setLine2('Suite 100');
$shipping_address->setState('XXXXXX');
$shipping_address->setRecipientName('Mark XXXXXX');
$itemList = new ItemList();
$itemList->setShippingAddress($shipping_address);
当我这样做时,它还会将此地址复制到帐单中。但我不知道如何发送一个单独的地址来预填充账单信息?
任何帮助,将不胜感激。
提前致谢!