From b0e63dfb02be338afa96042f3ba2274640c30335 Mon Sep 17 00:00:00 2001 From: Ryan Greenberg Date: Mon, 3 Dec 2018 09:19:24 -0800 Subject: [PATCH 1/2] Fix dangling message contents for Card::update --- lib/Card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Card.php b/lib/Card.php index 69a70972f..88552ce19 100644 --- a/lib/Card.php +++ b/lib/Card.php @@ -98,7 +98,7 @@ public static function update($_id, $_params = null, $_options = null) { $msg = "Cards cannot be accessed without a customer, recipient or account ID. " . "Call save() on \$customer->sources->retrieve('card_id'), " . - "\$recipient->cards->retrieve('card_id'), or"; + "\$recipient->cards->retrieve('card_id'), or " . "\$account->external_accounts->retrieve('card_id') instead."; throw new Error\InvalidRequest($msg, null); } From 87b4e2eaba818c8bbc1c98fd41e76c59ac2e5949 Mon Sep 17 00:00:00 2001 From: Ryan Greenberg Date: Wed, 5 Dec 2018 09:51:18 -0800 Subject: [PATCH 2/2] Fix additional missing string --- lib/Card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Card.php b/lib/Card.php index 88552ce19..1a18fc5af 100644 --- a/lib/Card.php +++ b/lib/Card.php @@ -82,7 +82,7 @@ public static function retrieve($_id, $_opts = null) { $msg = "Cards cannot be accessed without a customer, recipient or account ID. " . "Retrieve a card using \$customer->sources->retrieve('card_id'), " . - "\$recipient->cards->retrieve('card_id'), or"; + "\$recipient->cards->retrieve('card_id'), or " . "\$account->external_accounts->retrieve('card_id') instead."; throw new Error\InvalidRequest($msg, null); }