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

Fix to Paddle Billing Payment Method creation #946

Merged
merged 5 commits into from May 14, 2024

Conversation

deanpcmad
Copy link
Contributor

This PR fixes a bug found in this discussion: #922 (comment)

It also adds a new method called sync_from_transaction which takes both a pay_customer and a transaction. This then uses the Paddle API to grab the details for that transaction and create/update a Payment Method for the given Pay Customer.

Pay::PaddleBilling::PaymentMethod.sync_from_transaction pay_customer: Customer.last.payment_processor, transaction: "txn_01hmxtm1ep1c2pznfftybn56kk"

@excid3 excid3 added the Paddle label Jan 29, 2024
@j-m-harris
Copy link

Any movement on getting this merged? Also just hit this problem (thanks for having already prepared the fix though!)

@mrmason
Copy link

mrmason commented May 9, 2024

+1 for having this merged if possible

@excid3
Copy link
Collaborator

excid3 commented May 14, 2024

We should update tests for this, but I'm going to merge this anyways.

@excid3 excid3 merged commit 3f860ad into pay-rails:main May 14, 2024
36 checks passed
@deanpcmad deanpcmad deleted the sync-payment-methods branch May 14, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants