Skip to content

Bump pay from 3.0.24 to 6.3.1#139

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/bundler/pay-6.3.1
Open

Bump pay from 3.0.24 to 6.3.1#139
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/bundler/pay-6.3.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jan 16, 2023

Bumps pay from 3.0.24 to 6.3.1.

Release notes

Sourced from pay's releases.

v6.2.4

Full Changelog: pay-rails/pay@v6.2.3...v6.2.4

v6.2.3

Full Changelog: pay-rails/pay@v6.2.2...v6.2.3

v6.2.2

Full Changelog: pay-rails/pay@v6.2.1...v6.2.2

v6.2.1

Full Changelog: pay-rails/pay@v6.2.0...v6.2.1

v6.2.0

What's Changed

Full Changelog: pay-rails/pay@v6.1.2...v6.2.0

v6.1.2

Full Changelog: pay-rails/pay@v6.1.1...v6.1.2

v6.1.1

What's Changed

New Contributors

Full Changelog: pay-rails/pay@v6.1.0...v6.1.1

v6.1.0

What's Changed

New Contributors

Full Changelog: pay-rails/pay@v6.0.3...v6.1.0

... (truncated)

Changelog

Sourced from pay's changelog.

6.3.1

  • Fix retry_past_due_subscriptions to now call pay_open_invoices

6.3.0

  • Add payment_failed email to notify customers of failed payments and update their billing information This can be disabled with Pay.emails.payment_failed = true if you already use a dunning email service
  • subscription now sorts by created_at to find the latest subscription. This adds compatibility for UUID primary keys on pay tables.
  • Add unpaid scope to Pay::Subscription
  • Add pay_open_invoices to Pay::Stripe::Subscription If you have a subscription with open invoices (like an unpaid metered billing subscription), you can use this method to pay the open invoices and allow the user to resume the subscription

6.2.4

  • Set created_at on Braintree charges to match transaction created_at
  • Sync Braintree payment method during subscription sync since we already have to look it up
  • Handle missing Braintree subscription when syncing charge
  • Fix Pay::Charge.payment_processor scopes to join the customers table

6.2.3

  • Fix Braintree PaymentMethod sync reference to gateway

6.2.2

  • Fix pause_active? for stripe incorrectly returning true
  • Refactor Braintree cancel / cancel_now to use sync

6.2.1

  • Use paid_through_date for ends_at with canceled subscriptions

6.2.0

  • Add Pay::Braintree::Subscription.sync
  • Add Pay::Braintree::Charge.sync
  • Switch Braintree webhooks to use sync
  • Automatically save first charge when subscribing with Braintree
  • Add email for PayPal charges and username for Venmo charges on Braintree

6.1.2

  • Fix refunds missing on checkout session completed event.

6.1.1

  • Cast Pay.support_email to Mail::Address instead of string. This allows us to easily parse out the address, name, etc for use in Receipts and other places.
  • Update Stripe checkout_session.completed webhook to sync latest_charge for compatibility with Stripe API 2022-11-15 changes

... (truncated)

Upgrade guide

Sourced from pay's upgrade guide.

Upgrade Guide

Follow this guide to upgrade older Pay versions. These may require database migrations and code changes.

Pay 5.0 to 6.0

This version adds support for accessing the start and end of the current billing period of a subscription. This currently only works with Stripe subscriptions.

Fields changed:

  • Adds current_period_start and current_period_end to Pay::Subscription
  • Adds metered to Pay::Subscription for metered billing
  • Adds pause_behavior, pause_starts_at, and pause_resumes_at to Pay::Subscription

Backfills metered and paused columns from data json column

To upgrade you must add and run the following database migration.

class UpgradeToPayVersion6 < ActiveRecord::Migration[6.0]
  def change
    add_column :pay_subscriptions, :current_period_start, :datetime
    add_column :pay_subscriptions, :current_period_end, :datetime
add_column :pay_subscriptions, :metered, :boolean
add_column :pay_subscriptions, :pause_behavior, :string
add_column :pay_subscriptions, :pause_starts_at, :datetime
add_column :pay_subscriptions, :pause_resumes_at, :datetime
add_index :pay_subscriptions, :metered
add_index :pay_subscriptions, :pause_starts_at
Pay::Subscription.find_each do |pay_subscription|
pay_subscription.update(
metered: pay_subscription.data&amp;.dig(&quot;metered&quot;),
pause_behavior: pay_subscription.data&amp;.dig(&quot;pause_behavior&quot;),
pause_starts_at: pay_subscription.data&amp;.dig(&quot;paddle_paused_from&quot;),
pause_resumes_at: pay_subscription.data&amp;.dig(&quot;pause_resumes_at&quot;)
)
end

end
end

Stripe subscriptions created before this upgrade will gain the current_period_start and current_period_end attributes the next time they are synced. You can manually sync a Stripe subscription by running Pay::Stripe::Subscription.sync("STRIPE_SUBSCRIPTION_ID")

Pay 3.0 to 4.0

This is a major change to add Stripe tax support, Stripe metered billing, new configuration options for payment processors and emails, syncing additional customer attributes to Stripe and Braintree, and improving the architecture of Pay.

Jump to a topic

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pay](https://github.com/pay-rails/pay) from 3.0.24 to 6.3.1.
- [Release notes](https://github.com/pay-rails/pay/releases)
- [Changelog](https://github.com/pay-rails/pay/blob/master/CHANGELOG.md)
- [Upgrade guide](https://github.com/pay-rails/pay/blob/master/UPGRADE.md)
- [Commits](pay-rails/pay@v3.0.24...v6.3.1)

---
updated-dependencies:
- dependency-name: pay
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants