First of all, I want to thank you for a wonderful library. It is just what I was looking for. Pure way to execute simple paypal payment :)
I'm facing the problem how to get 'payment_request' var in "successful_payment" action,
def successful_payment
response = request.checkout!(
params[:token],
params[:PayerID],
payment_request
)
end
response.payment_info
#error: payment_request is not defined
end
How can I move payment_request, which is in my Instant payment request action(if I understand this correctly) to this one? Thank you so much. Any thoughts would be great!
First of all, I want to thank you for a wonderful library. It is just what I was looking for. Pure way to execute simple paypal payment :)
I'm facing the problem how to get 'payment_request' var in "successful_payment" action,
How can I move
payment_request
, which is in my Instant payment request action(if I understand this correctly) to this one? Thank you so much. Any thoughts would be great!