Skip to content

Getting error message "Invalid request: {0}" #77

@cis-pjain

Description

@cis-pjain

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions