贝宝直接付款不起作用

2021-12-29 00:00:00 php paypal

我在 NVP [直接信用卡付款] 上有 Paypal DoDirect 方法的 api,我使用 php 作为基本语言.

I have api for Paypal DoDirect Method on NVP [Direct Credit Card Payment], and I'm using php as base language.

我在交易中取得了成功 或者回复是这样说的.但它没有在沙箱帐户中更新.

I'm getting success with the transaction Or the response says so. But its not updating in the sandbox account.

    include_once(drupal_get_path('module','payment_details').'/paypal_do_direct.php');
    $paypalDoDirect = new PaypalDoDirect();
    $paypalDoDirect->setApiUserName('crazyheartram_api1.gmail.com');
    $paypalDoDirect->setApiPassword('1377690526');
    $paypalDoDirect->setApiSignature('Afm3wtXOE0L1wd2UrjZtljZHC-wnAWHTSwJ-b7-rw3qPcLGaMSLINqP8');
    $paypalDoDirect->setCreditCardType($cardType);
    $paypalDoDirect->setEnvironment('sandbox'); 
    $paypalDoDirect->setAmount($amount);
    $paypalDoDirect->setCardExpMonth($expirationDate);
    $paypalDoDirect->setCardExpYear($expirationYear);
    $paypalDoDirect->setCardVerificationValue($cvv);
    $paypalDoDirect->setFirstName($firstName);
    $paypalDoDirect->setLastName($lastName);
    $paypalDoDirect->setPayerEmail($email);
    $paypalDoDirect->setCreditCardNumber($creditCardNumber);
    $response= $paypalDoDirect->MakePayment();

我在下面分享了我的 Sandbox business-pro 帐户详细信息:

I shared my sandbox bussiness-pro account details below:

Username: crazyheartram_api1.gmail.com
Password: 1377690526
Signature: Afm3wtXOE0L1wd2UrjZtljZHC-wnAWHTSwJ-b7-rw3qPcLGaMSLINqP8

我使用另一个个人帐户完成了交易.

And I did the transaction using my another personal account.

Credit card number: 4351521550740304
Credit card type: Visa
Expiration date: 7/2018

我的期望是,它应该从个人帐户中扣除金额并将其记入商家(业务专业)帐户.

My expectation is, it should deduct the amount from personal account and credit it to the merchant (business-pro) account.

非常感谢任何帮助.谢谢

Any help highly appreciated. Thanks

已编辑我正在使用与下面网址中提到的相同的代码,支付API使用类

EDITED I'm using same code as mentioned in below url, Payment Api using class

我刚刚发现了这个问题,它和我的问题完全一样.https://drupal.stackexchange.com/questions/82788/seperate-payment-integeration-for-selected-plan-type-using-drupal-form-with-payp

I just found this question, its exactly the same question as that of mine. https://drupal.stackexchange.com/questions/82788/seperate-payment-integeration-for-selected-plan-type-using-drupal-form-with-payp

推荐答案

DoDirectPayment 调用直接向信用卡收费;它不会从 PayPal 帐户中扣除 - 即使该卡已附加到现有的 PayPal 帐户.因此,它不会在您的买家"PayPal 帐户中显示为交易.

The DoDirectPayment call charges credit cards directly; it does not deduct from a PayPal account - even if that card is attached to an existing PayPal account. Therefore it doesn't show up as a transaction in your 'buyer' PayPal account.

相关文章