Skip to content

Commit fbb386d

Browse files
authored
Merge pull request #49 from lambda-curry/chore/bump-up-version-to-0.2.5
Release Braintree plugin 0.2.5
2 parents 529296b + b30ea80 commit fbb386d

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

plugins/braintree-payment/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 0.2.5
4+
5+
### Fixes
6+
7+
- Keep the original Braintree sale on session `data.transaction` after each refund or void so sequential partial refunds still target that sale id. Gateway credits and voided records live only on `braintreeRefunds[]`.
8+
- Include the transaction status on refund rejection errors (`cannot be refunded right now because it's in status …` and `cannot be refunded because it's in status …`) instead of logging status separately.
9+
10+
### Notes
11+
12+
- `0.2.4` on npm already includes these runtime fixes (published from #48 without changelog notes). Prefer `0.2.5` for the documented release.
13+
314
## 0.2.2
415

516
### Fixes

plugins/braintree-payment/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ Earlier README examples used `logging: process.env.NODE_ENV !== 'production'` (a
153153
> - `savePaymentMethod`: If set to `true`, customer payment methods are saved for future use.
154154
> - `allowRefundOnRefunded`: If set to `true`, the imported payment provider will gracefully handle refund attempts on transactions that have already been refunded in Braintree. Instead of throwing an error, it will log a warning and record the refund locally only. This is useful when orders are imported and later refunded directly in Braintree.
155155
156+
### Upgrading to 0.2.5
157+
158+
> **Note:**
159+
> - Sequential partial refunds keep the original sale on `data.transaction`. Credit/void results are recorded only on `braintreeRefunds[]`. If you were reading the latest credit from `data.transaction` after a refund, use `braintreeRefunds` instead.
160+
> - Refund rejection errors now include the Braintree transaction status in the message.
161+
156162
### Upgrading to 0.2.2
157163

158164
> **Note:**

plugins/braintree-payment/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdacurry/medusa-payment-braintree",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"description": "Braintree plugin for Medusa",
55
"author": "Lambda Curry (https://lambdacurry.dev)",
66
"license": "MIT",

0 commit comments

Comments
 (0)