H. Can Yıldırım

Joined

260 Experience
2 Lessons Completed
0 Questions Solved

Activity

Posted in How do I use paddle_update_url on pay-rails gem?

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

Posted in How do I use paddle_update_url on pay-rails gem?

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.