Failed Conditions
Pull Request — master (#1800)
by Matthew
37:23
created
www/docs/api/key.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
 
41 41
             try {
42 42
                 $invoice = $sub->latest_invoice;
43
-                $invoice->pay([ 'expand' => [ 'payment_intent' ] ]);
43
+                $invoice->pay(['expand' => ['payment_intent']]);
44 44
             } catch (\Stripe\Exception\CardException $e) {
45
-                $invoice = \Stripe\Invoice::retrieve($sub->latest_invoice, ['expand' => [ 'payment_intent'] ]);
45
+                $invoice = \Stripe\Invoice::retrieve($sub->latest_invoice, ['expand' => ['payment_intent']]);
46 46
             }
47 47
         } else {
48 48
             $invoice = $sub->latest_invoice;
Please login to merge, or discard this patch.
www/docs/api/hook.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@
 block discarded – undo
57 57
         # Update the invoice's PaymentIntent and Charge to say it came from TWFY (for CSV export)
58 58
         # Both are shown in the Stripe admin, annoyingly
59 59
         if ($obj->payment_intent) {
60
-            \Stripe\PaymentIntent::update($obj->payment_intent, [ 'description' => 'TheyWorkForYou' ]);
60
+            \Stripe\PaymentIntent::update($obj->payment_intent, ['description' => 'TheyWorkForYou']);
61 61
         }
62 62
         if ($obj->charge) {
63
-            \Stripe\Charge::update($obj->charge, [ 'description' => 'TheyWorkForYou' ]);
63
+            \Stripe\Charge::update($obj->charge, ['description' => 'TheyWorkForYou']);
64 64
         }
65 65
     } catch (\Stripe\Exception\ApiErrorException $e) {
66 66
     }
Please login to merge, or discard this patch.