robmcvey / cakephp-paypal

CakePHP 2.0 plugin for PayPal Website Payment Pro
60 stars 44 forks source link

Payment not debited to personal account. #24

Closed anikaandmasti closed 10 years ago

anikaandmasti commented 10 years ago

Hi, I integrated this plugin into my cakephp application. The merchant's account is credited with the payment. However, the balance in the customer's personal account is not deducted.

I tried the above using the paypal sandbox.

Here is the snippet of the code I used: $this->Paypal = new Paypal( array( 'sandboxMode' => true, 'nvpUsername' => 'phpanika-facilitator_api1.gmail.com', 'nvpPassword' => 'xxxxxxxx', 'nvpSignature' => 'XXXXXXXXXXXXXXXXXXXX' ) ); $payment = array( 'amount' => 2.00, 'card' => '4032 0311 6136 6470', 'type' => 'Visa', 'expiry' => array( 'M' => '10', 'Y' => '2019', ), 'cvv'=>'433', 'currency' => 'USD' ); $this->Paypal->doDirectPayment($payment);

Please let me know whats the problem.

robmcvey commented 10 years ago

This is a card payment, so you'd assume the customer's bank account would be debited.

If this isn't happening, it's a PayPal sandbox issue, sorry!