-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
Hello,
I am getting error response {"responseEnvelope"=>{"timestamp"=>"2014-01-13T03:36:10.038-08:00", "ack"=>"Failure", "correlationId"=>"a668cb42ba8d5", "build"=>"7935900"}, "error"=>[{"errorId"=>"580001", "domain"=>"PLATFORM", "subdomain"=>"Application", "severity"=>"Error", "category"=>"Application", "message"=>"Invalid request: {0}"}]}
I have run the following code
data = {
"returnUrl" => root_url,
"requestEnvelope" => {"errorLanguage" => "en_US"},
"currencyCode"=>"USD",
"receiverList"=> { "receiver"=>[{ "email"=>self.paypal_email, "amount"=> self.amount}]},
"cancelUrl"=>root_url,
"actionType"=>"CREATE",
"ipnNotificationUrl"=>root_url,
"startingDate" => DateTime.now
}
preapproval = pay_request.preapproval(data)
pay_response = pay_request.pay(data)
self.pay_key = pay_response["payKey"]
self.paypal_status = "Payed"
execute_payment = pay_request.execute_payment(pay_response["payKey"])
Please help me out from this...
Thanks in advance
Metadata
Metadata
Assignees
Labels
No labels