Reputation: 1138
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();
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
EDITED I'm using same code as mentioned in below url, Payment Api using class
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
Upvotes: 1
Views: 714
Reputation: 19356
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.
Upvotes: 2