Paypal链式付款送货地址

时间:2014-03-27 21:28:09

标签: paypal paypal-ipn paypal-sandbox paypal-adaptive-payments

我为我的应用程序使用自适应链式付款(买方汇款,我收取我的%费用,然后将其余部分发送给卖家)。我遵循下一个逻辑:

-On actionType: CREATE and paymentType: SERVICE
-call PAY api, 
-receive payKey, 
-setPaymentOption(where I set the shipping address)
-redirect to paypal page to pay(on review page I can see shipping address)
-login in seller page and I have this message: Seller Protection Not Eligible(We have no shipping address on file.)

在SetPaymentOptions上:

 setPaymentsOption($payKey){
    $header = array(
    "X-PAYPAL-SECURITY-USERID: {$this->user}",
    "X-PAYPAL-SECURITY-PASSWORD: {$this->password}",
    "X-PAYPAL-SECURITY-SIGNATURE: {$this->signature}",
    "X-PAYPAL-APPLICATION-ID: {$this->app_id}",
    "X-PAYPAL-REQUEST-DATA-FORMAT: NV",
    "X-PAYPAL-RESPONSE-DATA-FORMAT: NV"
    );
    $data = array(
    'payKey' => $payKey,
    'requestEnvelope.errorLanguage'=>'en_US',
    'senderOptions.requireShippingAddressSelection'=>'true',
    'senderOptions.addressOverride'=>'true',
    'senderOptions.shippingAddress.addresseeName'=> 'John',
    'senderOptions.shippingAddress.city'=>'San+Jose',
    'senderOptions.shippingAddress.country'=>'US',
    'senderOptions.shippingAddress.phone.countryCode' => '91',
    'senderOptions.shippingAddress.phone.phoneNumber' =>'408123456',
    'senderOptions.shippingAddress.phone.type' =>'MOBILE',
    'senderOptions.shippingAddress.state' =>'CA',
    'senderOptions.shippingAddress.street1' =>'17+Magneson+St',
    'senderOptions.shippingAddress.street2' =>'building+1',
    'senderOptions.shippingAddress.zip' => '12345',
    );

    URL : https://svcs.sandbox.paypal.com/AdaptivePayments/SetPaymentOptions/ $data/$header
    }

    Result : 
           [responseEnvelope.timestamp] => 2014-04-03T04:23:14.827-07:00
           [responseEnvelope.ack] => Success
           [responseEnvelope.correlationId] => 1037e10d7e4da
          [responseEnvelope.build] => 10273932

我没有收到任何错误消息。一切正常,我付款(在审核您的信息我有送货地址)但在交易细节上我仍然得到卖家保护不合格

那么我做错了什么? 谢谢

0 个答案:

没有答案