Paypay refund crash

3 views
Skip to first unread message

Steve Gehrman

unread,
Apr 6, 2012, 6:33:50 PM4/6/12
to potion...@googlegroups.com
Just testing the refund feature and got a crash

res = PayPal.make_nvp_call(params, micropayment = self.total < 12)

Looks like PayPal.make_nvp_call() only takes a single parameter.  

Anyone know why this micropayments was included and should micropayments go into the params?

2012-04-06T22:14:59+00:00 app[web.1]: ArgumentError (wrong number of arguments (2 for 1)):
2012-04-06T22:14:59+00:00 app[web.1]:   lib/ruby-paypal/paypal.rb:274:in `make_nvp_call'
2012-04-06T22:14:59+00:00 app[web.1]:   app/models/order.rb:398:in `refund'
2012-04-06T22:14:59+00:00 app[web.1]:   app/models/order.rb:537:in `paypal_refund_order'
2012-04-06T22:14:59+00:00 app[web.1]:   app/controllers/admin/orders_controller.rb:127:in `refund'

Steve Gehrman

unread,
Apr 9, 2012, 3:25:54 PM4/9/12
to potion...@googlegroups.com
?

-steve

Andy Kim

unread,
Apr 22, 2012, 8:47:44 PM4/22/12
to potion...@googlegroups.com
This got merged in from my private branch by mistake. I've taken care of it now.

For anyone curious what this micropayment stuff is in the first place, PayPal lets you have a child account that has better rates for transactions with smaller order amounts. The child account then automatically transfers its balance to the main account at the end of the day.

From the point of view of Potion Store, it means having to use a different PayPal account # and credentials and that's what I do in my private branch.

- Andy


--
You received this message because you are subscribed to the Google Groups "Potion Store Discussions" group.
To view this discussion on the web visit https://groups.google.com/d/msg/potion-store/-/TWWCkhbMK7QJ.
To post to this group, send email to potion...@googlegroups.com.
To unsubscribe from this group, send email to potion-store...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/potion-store?hl=en.

Reply all
Reply to author
Forward
0 new messages