Skip to content

Latest commit

 

History

History
204 lines (123 loc) · 5.66 KB

CHANGELOG.md

File metadata and controls

204 lines (123 loc) · 5.66 KB

Unreleased

2.6.9

  • Update Stripe & Braintree default card automatically when the customer is accessed (ie. on charge, subscribe, etc) #300 - @excid3

2.6.8

  • Add passthrough fallback for paddle payment succeeded webhook #302 - @nm

2.6.7

  • Add Stripe payment_intent.succeeded webhook listener

2.6.6

  • Improve error wrappers to delegate message to original cause

2.6.5

  • [NEW] Raise error if payment processor name is nil
  • [FIX] Pay::Error now uses the correct message in to_s
  • Create braintree customer on update_card if needed

2.6.4

  • [NEW] Fake payment processor for testing and giving users free access to your application
  • [FIX] Delegate trial_ends_at for subscriptions - @archonic

2.6.3

  • [FIX] Default to empty hash when default_url_options is nil so proper error is raised
  • [FIX] Fix inquiry when processor is nil

2.6.2

  • [FIX] Correctly handle updating payment method in Stripe

2.6.1

  • [NEW] Add Stripe Customer Billing Portal - @excid3
  • Include customer on Stripe Checkout sessions - @excid3

2.6.0

  • [NEW] Stripe Checkout support - @excid3

2.5.0

  • [BREAKING] Webhooks that can't be verified respond with 400 instead of 200 - @excid3
  • [BREAKING] Remove StripeEvent dependency - excid3
  • [BREAKING] Remove old configuration for mailer subjects in favor of locales - @excid3
  • [NEW] Add Pay::Webhook.delegator for subscribing to webhooks - @excid3

2.4.4

  • [Fix] Fixed missing require for version file - @excid3

2.4.3

  • Add Stripe app info and join the Stripe Partner program for better support for Pay! - @excid3

2.4.2

  • [FIX] Update migration to check for symobl keys on ActiveRecord adapter with Rails 6.1 - @excid3

2.4.1

  • [FIX] Move Paddle logic into paddle methods - @excid3

2.4.0

  • [BREAKING] Use locales for email subjects and remove configuration - @excid3

2.3.1

  • [FIX] Subject for payment action required emails referenced an invalid config - @excid3

2.3.0

  • Add data json column to Charge and Subscription models - @excid3

To add the new migrations to your app, run:

rails pay:install:migrations
  • Add Paddle initial support - @nm
  • Pay.model_parent_class defaults to ApplicationRecord - @excid3
  • Test suite now runs against sqlite, mysql, and postgresql - @excid3
  • [FIX] Lookup billable on invoice.payment_action_required events - @excid3

2.2.2

  • Bugfixes

2.2.1

  • [NEW] Allow passing ?back=/path/to/item for customizing the back link for SCA payments page

2.2.0

Stripe API 2020-08-27 changes:

  • Use proration_behavior instead of prorate for Stripe subscription changes
  • Switch to ::Stripe::Subscription.create instead of customer.subscriptions as Stripe no longer includes this by default for performance
  • Set Stripe API version for easier gem management

2.1.3

  • Add support for quantity option on subscribe for subscription quantities
  • Added Pay::BraintreeAuthorizationError to catch Braintree actions with malformed data or unauthorized API access.

2.1.2

  • [FIX] Remove old billable migration

2.1.1

  • [FIX] The charge method now raises Pay::BraintreeError when a charge fails. This makes it work consistently with the Stripe implementation which raises an error on charge failure.

2.1.0

  • [BREAKING] Subscription & Charge associations to owner are now polymorphic.

    Requires adding owner_type:string to both Pay::Charge and Pay::Subscription models and setting the value for all existing records to your model name.

class AddOwnerTypeToPay < ActiveRecord::Migration[6.0]
  def change
    add_column :pay_charges, :owner_type, :string
    add_column :pay_subscriptions, :owner_type, :string

    # Backfill owner_type column to match your Billable model
    Pay::Charge.update_all owner_type: "User"
    Pay::Subscription.update_all owner_type: "User"
  end
end

Pay.billable_class is now deprecated and will be removed in a future version. You should also update your existing Pay migrations to reference the :users table rather than Pay.billable_class and any other code you may have that references this method.

2.0.3

  • [FIX] Stripe subscription cancel shouldn't change status
  • [FIX] Stripe test payment methods should now work (ie. pm_card_visa)

2.0.2

  • [FIX] Styling tweaks for payment intent page

2.0.1

  • [FIX] Stripe Refund and Charge references weren't matching the right class

2.0.0

  • [NEW] Stripe SCA support
  • [BREAKING] Requires using PaymentMethods instead of Source and Tokens
  • [BREAKING] Drops Ruby 2.4 support
  • [BREAKING] automount_webhook_routes config option has been renamed to automount_routes
  • [BREAKING]webhooks_path config option has been renamed to routes_path
  • Added status column to payments to keep in sync with Stripe. We're also adding statuses to Braintree subscriptions to keep them in sync as best we can.
  • Added payments#show route to handle SCA payments that require action
  • Added webhook handler for payments that require action
  • Added trial_period_days when creating a subscription that works the same on Stripe and Braintree

1.0.3

  • Set default from email to Pay.support_email

1.0.2

  • Add on_trial_or_subscribed? convenience method

1.0.1

  • Removed Rails HTML Sanitizer dependency since it wasn't being used

1.0.0

  • Add stripe?, braintree?, and paypal? to Pay::Charge
  • Add webhook mounting and path options

1.0.0.beta4 - 2019-03-26

  • Makes stripe?, braintree?, and paypal? helper methods always available on Billable.

1.0.0.beta3 - 2019-03-12

  • Update migration to reference Billable instead of Users

1.0.0.beta2 - 2019-03-11

  • Check ENV first when looking up keys to allow for overrides