README.md in paddle-2.5.0 vs README.md in paddle-2.5.1
- old
+ new
@@ -5,11 +5,11 @@
## Installation
Add this line to your application's Gemfile:
```ruby
-gem "paddle", "~> 2.3"
+gem "paddle", "~> 2.5"
```
## Billing API
For accessing the new Billing API from Paddle. For more info, view the [Paddle Billing](https://www.paddle.com/billing) page.
@@ -269,12 +269,13 @@
# Preview a transaction
# https://developer.paddle.com/api-reference/transaction/preview-transaction
Paddle::Transaction.preview(items: [ { price_id: "pri_123abc", quantity: 5 } ])
# Get a PDF invoice for a transaction
+# disposition defaults to "attachment"
# Returns a raw URL. This URL is not permanent and will expire.
# https://developer.paddle.com/api-reference/transaction/get-invoice-pdf
-Paddle::Transaction.invoice(id: "txn_abc123")
+Paddle::Transaction.invoice(id: "txn_abc123", disposition: "inline")
#=> https://paddle-sandbox-invoice...
```
### Subscriptions