payment gateway

Posts: 8
Joined: 10/20/2007

hi,

I m using paypal website payment pro gateway

I m getting error as "We were unable to process your credit card payment. Please verify your card details and try again. If the problem persists, contact us to complete your order."

please help me

Thanks

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

If you're testing an order, try the card number 4111111111111111 and any valid expiration date. It should let it pass.

Posts: 8
Joined: 10/20/2007

after using credit card no 4111111111111111 i m getting same error

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Are you running on the Sandbox or Live server?

Posts: 8
Joined: 10/20/2007

I m running it on live server
I found problem as that in $order array i m not getting payment details value

<?php
  $order
= uc_order_load($order_id);
 
// Now you can access the payment details with $order->payment_details.
 
print_r($order->payment_details, TRUE);
?>

uc_order_load function is succesfuly called but i m not able to print $order->payment_details value

In credit card setting i enable following option

"Attempt to process credit card payments at checkout"
please tell me that is there any other setting that we have to do in "paypal website payment pro"

please help me out

Thanks

Thanks

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Maybe update to PHP 5? Are you still running on PHP 4?

Posts: 8
Joined: 10/20/2007

yes i m working on php 4.how to update it

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

You may need to talk with your host to see if they support it. It may be an issue where they have to do it or where you can adjust your .htaccess file. They should know.

Posts: 8
Joined: 10/20/2007

is there any solutions to get it work on php 4?
please help me out

Thanks

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Honestly, it was my understanding it was working for PHP 4. This was a months long issue that may still persist in some forms, but I don't plan on addressing it since PHP 5 is a free and available fix for folks that experience this issue.

Posts: 8
Joined: 10/20/2007

now i m using it on php5 but credit card is not processing.
It is bringing me to thank you page.
mail is also coming

Posts: 67
Joined: 05/05/2008
Bug Finder

pankaj wrote:
now i m using it on php5 but credit card is not processing.
It is bringing me to thank you page.
mail is also coming

Don't know how to solve your problem (I'm getting the same error), but the code you posted...

<?php
print_r
($order->payment_details, TRUE);
?>
will not output anything. The second parameter in print_r() is a boolean flag, which, if set to TRUE, will cause the function to return the output rather than displaying it. Since you have no print/echo in front of the function call, the data gets returned to... nothing.

(And yes, I realize this is an old thread.)