[英]Using PayPal Checkout API, the payee is ignored
I've been trying to use the Checkout SDK to set up a payment to a 3rd party email address in the sandbox.我一直在尝试使用 Checkout SDK 设置对沙箱中的第 3 方电子邮件地址的付款。 Everything works, but the payee email I specify in the request according to the docs is ignored and replaced by my other default sandbox account no matter what I set it to.
一切正常,但无论我将其设置为什么,我在请求中根据文档指定的收款人电子邮件都会被忽略并替换为我的其他默认沙箱帐户。 Could anybody advise on what I'm doing wrong?
有人可以建议我做错了什么吗?
This is the structure I'm using:这是我正在使用的结构:
$request->body = [
'intent' => 'CAPTURE',
'purchase_units' => [
[
'amount' => [
'value' => $amount,
'currency_code' => $currency
],
'payee' => [
'email' => $payee->paypal_email
],
'description' => 'One-time donation to ' . $payee->name
],
],
'application_context' => [
'cancel_url' => url('donation_error?' . $this->callbackQuery),
'return_url' => url('donation_success?' . $this->callbackQuery)
],
];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.