Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paddle Billing Updates #875

Merged
merged 11 commits into from
Oct 24, 2023
Merged

Conversation

deanpcmad
Copy link
Contributor

This PR updates some old PaddlePay code that was left during the transfer.

It updates the processor_subscription and charge methods.

When creating a one-off charge on Paddle, it returns the subscription back and not the transaction, which is annoying. So I've left it so it creates the transaction and then the webhook will receive that as normal

@deanpcmad
Copy link
Contributor Author

Checking the Paddle docs, they recommend grabbing the latest transactions from the API when doing an immediate charge, so I'll add a commit for this shortly

@excid3
Copy link
Collaborator

excid3 commented Oct 18, 2023

Thanks for this! 👍

@deanpcmad
Copy link
Contributor Author

Updated 👍

lib/pay/paddle/billable.rb Outdated Show resolved Hide resolved
…o paddle-billing-updates

* 'paddle-billing-updates' of github.com:deanpcmad/pay:
  Paddle Billing Docs (pay-rails#873)
  Update 1_installation.md with Stripe version 10 (pay-rails#880)
  Add Rails 7.1 to tests and remove Ruby 2.7 as it's EOL (pay-rails#878)
  Fix issue with Paddle Billing Charges when there's no payment details (pay-rails#872)
  Merge session_id into return_url for Stripe Checkout
  Stripe v10
  Update github actions to use main branch (pay-rails#871)
@deanpcmad
Copy link
Contributor Author

Have updated the charge code so it now creates a Transaction and have updated the docs. Also pushed a fix for #874 as part of this too.

@excid3 excid3 merged commit c2ef503 into pay-rails:main Oct 24, 2023
36 checks passed
@excid3
Copy link
Collaborator

excid3 commented Oct 26, 2023

@deanpcmad how much work do you think it would be to migrate PaddleClassic to your paddle gem?

@deanpcmad
Copy link
Contributor Author

Shouldn't be too much work as I think most of the methods are similar. Will try and take a look tonight

@excid3
Copy link
Collaborator

excid3 commented Oct 26, 2023

Figure it would simplify long-term maintenance, so that would be great. 👍
Would like to roll it into our v2 release if it's easy enough.

@deanpcmad deanpcmad deleted the paddle-billing-updates branch October 26, 2023 15:18
@deanpcmad deanpcmad mentioned this pull request Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants