贝宝直接付款无效

贝宝直接付款无效

本文介绍了贝宝直接付款无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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 bussiness-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

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

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

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

我刚刚发现了这个问题,它与我的问题完全相同. https://drupal. stackexchange.com/questions/82788/单独付款计划用于带薪水的双形式的选定计划类型

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.

这篇关于贝宝直接付款无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 17:44