贝宝:无法处理付款

时间:2019-02-21 13:17:10

标签: php wordpress woocommerce paypal paypal-sandbox

我在wordpress中使用woocommerce / paypal插件。

我有以下请求参数:

WC_Gateway_PPEC_Client::_request: remote request to https://api-3t.sandbox.paypal.com/nvp with params: Array (
    [LOGOIMG] => 
    [HDRIMG] => 
    [PAGESTYLE] => 
    [BRANDNAME] => Neeta Sinha
    [RETURNURL] => http://172.16.60.51/project/our-services/checkout/?woo-paypal-return=true
    [CANCELURL] => http://172.16.60.51/project/our-services/cart/?woo-paypal-cancel=true
    [ADDROVERRIDE] => 1
    [LANDINGPAGE] => Billing
    [SOLUTIONTYPE] => Sole
    [PAYMENTREQUEST_0_PAYMENTACTION] => sale
    [PAYMENTREQUEST_0_ALLOWEDPAYMENTMETHOD] => InstantPaymentOnly
    [PAYMENTREQUEST_0_INSURANCEAMT] => 0
    [PAYMENTREQUEST_0_HANDLINGAMT] => 0
    [PAYMENTREQUEST_0_CUSTOM] => 
    [PAYMENTREQUEST_0_INVNUM] => 
    [PAYMENTREQUEST_0_CURRENCYCODE] => INR
    [PAYMENTREQUEST_0_AMT] => 29500
    [PAYMENTREQUEST_0_ITEMAMT] => 25000
    [PAYMENTREQUEST_0_SHIPPINGAMT] => 0
    [PAYMENTREQUEST_0_TAXAMT] => 4500
    [PAYMENTREQUEST_0_SHIPDISCAMT] => 0
    [NOSHIPPING] => 1
    [PAYMENTREQUEST_0_SHIPTONAME] => Dushyant Joshi
    [PAYMENTREQUEST_0_SHIPTOSTREET] => 
    [PAYMENTREQUEST_0_SHIPTOSTREET2] => 
    [PAYMENTREQUEST_0_SHIPTOCITY] => 
    [PAYMENTREQUEST_0_SHIPTOSTATE] => MH
    [PAYMENTREQUEST_0_SHIPTOZIP] => 410209
    [PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => IN
    [L_PAYMENTREQUEST_0_NAME0] => Astro Architecture - Floor plan consultation
    [L_PAYMENTREQUEST_0_DESC0] => 
    [L_PAYMENTREQUEST_0_QTY0] => 1
    [L_PAYMENTREQUEST_0_AMT0] => 25000
    [METHOD] => SetExpressCheckout
    [VERSION] => 120.0
    [USER] => dushyant********india_api1.gmail.com
    [PWD] => W7HCKTAXQ4E65W92
    [SUBJECT] => dushyant******india@gmail.com
    [SIGNATURE] => AR.****************-Mmt9dEZz15ueaFPrdp
)

我收到以下答复

WC_Gateway_PPEC_Client::_process_response: acknowleged response body: Array
(
    [TOKEN] => EC-3L302863EG4314630
    [TIMESTAMP] => 2019-02-21T13:08:58Z
    [CORRELATIONID] => 7a536ac5ad1e
    [ACK] => Success
    [VERSION] => 120.0
    [BUILD] => 51861407
)

国家/地区商人沙箱帐户是印度。

但是我正在收到以下错误。

  

我们无法使用您的PayPal帐户来处理您的付款,   这次。请返回商家并尝试使用其他   付款方式。

1 个答案:

答案 0 :(得分:0)

如果您将Woocommerce插件用于印度商人,请尝试启用WooCommerce的“ Woocommerce Paypal Checkout网关”。请注意,印度买家可以使用印度PayPal帐户以印度卢比付款。但是,要在Sandbox中进行测试,请确保您从结帐页面传递INR,让印度买家为印度商人付款。