Note that there are some explanatory texts on larger screens.

plurals
  1. PORails PayPal adaptive
    primarykey
    data
    text
    <p>I am using <a href="https://github.com/tc/paypal_adaptive" rel="nofollow">paypal_adaptive</a> gem and having some problems. This is my code in config/paypal_adaptive.yml:</p> <pre><code>development: environment: "sandbox" username: "x@gmail.com" password: "xxx" signature: "xxx" application_id: "APP-80W284485P519543T" test: environment: "sandbox" username: "x@gmail.com" password: "xxx" signature: "xxx" application_id: "APP-80W284485P519543T" enviorment: environment: "sandbox" username: "x@gmail.com" password: "xxx" signature: "xxxx" application_id: "APP-80W284485P519543T" </code></pre> <p>of course the XXX is the real details. I also tried with the API credentials that were given me, didn't work either way. Here's the controller code which controls the payment:</p> <blockquote> <p>> pay_request = PaypalAdaptive::Request.new</p> </blockquote> <pre><code>data = { "returnUrl" =&gt; "http://localhost:3000/payments/completed_payment_request", "requestEnvelope" =&gt; {"errorLanguage" =&gt; "en_US"}, "currencyCode"=&gt;"USD", "receiverList"=&gt;{"receiver"=&gt;[{"email"=&gt;"xxx@gmail.com", "amount"=&gt;"10.00"}]}, "cancelUrl"=&gt;"http://localhost:3000/payments/canceled_payment_request", "actionType"=&gt;"PAY", "ipnNotificationUrl"=&gt;"http://localhost:3000/payments/ipn_notification" } @pay_response = pay_request.pay(data) </code></pre> <p>I am getting the following array (which contains the error) when trying to output pay_response:</p> <blockquote> <p>> ["responseEnvelope", {"timestamp"=>"2011-05-03T12:00:54.107-07:00", "ack"=>"Failure", "correlationId"=>"242e1fc31cf18", "build"=>"1846084"}] ["error", [{"errorId"=>"560022", "domain"=>"PLATFORM", "subdomain"=>"Application", "severity"=>"Error", "category"=>"Application", "message"=>"The X-PAYPAL-APPLICATION-ID header contains an invalid value", "parameter"=>["X-PAYPAL-APPLICATION-ID"]}]]</p> </blockquote> <p>I am really hopeless. Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload