-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
payKey issue #42
Comments
the response body seems to have changed? i get it to work by calling response.pay_key |
try doing a print of the response body and you should see it in there for debugging |
What does response.request return? Also have a look at response.request and response.request.message |
response.request has this: {"PayRequest"=>{"requestEnvelope"=>{"detailLevel"=>"ReturnAll", "errorLanguage"=>"en_US"}, "actionType"=>"PAY", "cancelUrl"=>"http://REMOVED.com/cancel?order=6426480503", "returnUrl"=>"http://REMOVED.com/done?order=6426480503", "ipnNotificationUrl"=>"http://REMOVED.com/ipn?order=6426480503", "currencyCode"=>"USD", "receiverList"=>{"receiver"=>[{"email"=>"[email protected]", "amount"=>"1.76", "primary"=>"true"}, {"email"=>"[email protected]", "amount"=>"0.21", "primary"=>"false"}, {"email"=>"[email protected]", "amount"=>"0.1", "primary"=>"false"}]}, "reverseAllParallelPaymentsOnError"=>"false"}} response.request.message: |
I thought the error message was in response.request, you actually get an array of error messages from You can get the message by accessing
|
I'm trying to setup a payment using the following codes:
then, i redirect user to paypal site using the following logic
I've seen response[:payKey] is nil sometime. That's why it is not redirecting to Paypal. Why response[:payKey] is missing and what should I do actually do to resolve this?
FYI: I'm trying to setup a Chained payments with primary recipient.
Thanks in advance.
The text was updated successfully, but these errors were encountered: