Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I use paddle_update_url on pay-rails gem?

H. Can Yıldırım asked in Rails

Hi,

I'm trying to integrate pay-rails (paddle) gem into my existing codebase. But having difficulties with data stored in the data column. Like cancel_url, update_url or receipt_url.

company = Company.find(1)
company.subscription.paddle_update_url # returns paddle_update_url string not the actual URL
company.subscription.paddle_cancel_url # returns paddle_cancel_url string not the actual URL

What am I missing?

Thank you.

Reply

I just noticed this too:

company = Company.find(1)

# This one works fine
charge = company.charges.first
charge.paddle_receipt_url 

# This doesn't work
company.charges do |charge|
    p charge.paddle_receipt_url # returns paddle_receipt_url string not the actual URL
end
Reply

Post this on the Pay issues. 👍

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,563+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.