【发布时间】:2016-03-12 02:10:24
【问题描述】:
我正在编写一个使用 PayPals Express Checkout 和 v.zero API 的系统。我遇到的问题是它只接受美元付款,但我需要接受美元、英镑、澳元和欧元。我正在按如下方式处理交易:
$transaction = array(
'amount' => $order->cost_total,
'paymentMethodNonce' => $info->nonce,
'orderId' => $orderId,
'descriptor' => array(
'name' => '-removed-',
),
'shipping' => array(
'firstName' => $info->firstName,
'lastName' => $info->lastName,
'company' => '',
'streetAddress' => $info->street,
'extendedAddress' => '',
'locality' => $info->city,
'region' => $info->county,
'postalCode' => $info->postCode,
'countryCodeAlpha2' => $info->country,
),
);
$result = $gateway->transaction()->sale($transaction);
【问题讨论】:
标签: paypal paypal-sandbox braintree express-checkout