贝宝直接付款不起作用 [英] Paypal Direct pay not working

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

问题描述

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆