Skip to content

Commit

Permalink
Merge pull request #12 from utopia-php/fix-payment-method-delete
Browse files Browse the repository at this point in the history
fix delete payment method
  • Loading branch information
lohanidamodar authored Dec 20, 2023
2 parents 110f04a + 9ea19ab commit b134c83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Pay/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ abstract public function listPaymentMethods(string $customerId): array;
/**
* Remove payment method
*/
abstract public function deletePaymentMethod(string $customerId): bool;
abstract public function deletePaymentMethod(string $paymentMethodId): bool;

/**
* Add new customer in the gateway database
Expand Down
5 changes: 2 additions & 3 deletions src/Pay/Pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,12 @@ public function refund(string $paymentId, int $amount): array
/**
* Delete Payment Method
*
* @param string $customerId
* @param string $paymentMethodId
* @return bool
*/
public function deletePaymentMethod(string $customerId, string $paymentMethodId): bool
public function deletePaymentMethod(string $paymentMethodId): bool
{
return $this->adapter->deletePaymentMethod($customerId, $paymentMethodId);
return $this->adapter->deletePaymentMethod($paymentMethodId);
}

/**
Expand Down

0 comments on commit b134c83

Please sign in to comment.