php - "The Transaction is invalid ...." PayPal when I send user for approval -
i in trouble couple of hours, tried many ways still no luck. have integrated paypal in wordpress theme using paypal framework wordpress plugin. sandbox settings working fine. got success on setexpresscheckout token, when send user paypal approval , payment using https://www.sandbox.paypal.com/webscr?token=ec-2fy692500k5578627&cmd=_express-checkout gives me error...
this transaction invalid. please return recipient's website complete transaction using regular checkout flow.
please help, can make work... worried... :(
updated
i sending following params setexpresscheckout
$ppparams = array( 'method' => 'setexpresscheckout', 'paymentrequest_0_paymentaction' => 'sale', 'returnurl' => admin_url('admin-ajax.php?action=paypal_handler&step=commit&user_id=' . $user_id), 'cancelurl' => home_url(), 'amt' => $price, 'paymentrequest_0_amt' => $price, 'paymentrequest_0_itemamt' => $price, 'l_paymentrequest_0_itemcategory0' => 'digital', 'l_paymentrequest_0_name0' => 'prod name', 'l_paymentrequest_0_qty0' => 1, 'l_paymentrequest_0_amt0' => $price, 'desc' => 'description', 'firstname' => $_post['first_name'], 'lastname' => $_post['last_name'], 'email' => $email ); $response = hashcall($ppparams);
i using following https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_id=developer/e_howto_api_ecgettingstarted cross checking , implementation.
huh! found solution... nothing use lower-case letters token
... in https://www.sandbox.paypal.com/webscr?token=ec-2fy692500k5578627&cmd=_express-checkout
Comments
Post a Comment