Open
Description
I'm trying to setup a payment using the following codes:
response = @gateway.setup_purchase(
:return_url => url_for(:action => :done, :params => {:order => @order.number}),
:cancel_url => url_for(:action => :cancel, :params => {:order => @order.number}),
:ipn_notification_url => url_for(:action => :ipn, :params => {:order => @order.number}),
:receiver_list => recipients
)
then, i redirect user to paypal site using the following logic
if response[:payKey].present?
redirect_to @gateway.redirect_url_for(response[:payKey])
else
#something else to happen
end
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.
Metadata
Assignees
Labels
No labels