pay-rails / pay

Payments for Ruby on Rails apps
https://github.com/pay-rails/pay
MIT License
1.98k stars 316 forks source link

Update Paddle Billing Javascript Documentation #1080

Closed jjatinggoyal closed 2 months ago

jjatinggoyal commented 2 months ago

Pull Request

Summary: Update deprecated Paddle.Setup() method to Paddle.Initialize() and minor syntax in Paddle Billing documentation.

Description: I'm integrating Paddle in my service, and noticed that Paddle.js has deprecated the Paddle.Setup() method in favor of Initialize() method: https://developer.paddle.com/paddlejs/methods/paddle-setup.

Additionally, quotes are required around the <%= Pay::PaddleBilling.client_token %> erb; otherwise I'm running into the following error as it's not read as a string while initializing paddle.js.

Screenshot 2024-09-30 at 11 01 40 PM