Reputation: 6684
I have the Ruby gem Stripe for payment processing but cannot seem to make a call to Stripe::Order.pay() method even though it's in the docs.
> require 'stripe'
=> false
2.3.4 :007 > Stripe::Order.pay()
NoMethodError: undefined method `pay' for Stripe::Order:Class
Other functions like create
work but this one won't.
Upvotes: 0
Views: 64
Reputation: 269
Are you using the latest version of the Stripe gem?
Based on this issue from a while ago, this may be the case. It was for me and after updating to the latest I was able to call Stripe::Order.pay
without an issue.
Upvotes: 1