Skip to content

Commit

Permalink
Sync all payment methods, not just cards
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Jan 11, 2024
1 parent db9db21 commit 46c3866
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/PaymentMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public function syncAllPaymentMethods(Gateway $gateway)

foreach ($customers->autoPagingIterator() as $customer) {
$stripePaymentMethods = $customer->allPaymentMethods(
$customer->id,
['type' => 'card'],
$customer->id
);

foreach ($stripePaymentMethods as $stripePaymentMethod) {
Expand Down

0 comments on commit 46c3866

Please sign in to comment.