Rename gateway main method to process

This commit is contained in:
2024-10-01 12:13:15 +02:00
parent a0ab60afa6
commit fa481abb08
2 changed files with 2 additions and 2 deletions
@@ -35,7 +35,7 @@ interface GatewayInterface
*
* @return GatewayCheckout The GatewayCheckout updated with the data given by the gateway
*/
public function sendData(GatewayCheckout $checkout): GatewayCheckout;
public function process(GatewayCheckout $checkout): GatewayCheckout;
/**
* When a user is redirected by the gateway we must handle the redirection
@@ -42,7 +42,7 @@ class StripeGateway implements GatewayInterface
return 'stripe';
}
public function sendData(GatewayCheckout $checkout): GatewayCheckout
public function process(GatewayCheckout $checkout): GatewayCheckout
{
$session = $this->stripe->checkout->sessions->create([
'customer_email' => $checkout->getOrigin()->getUser()->getEmail(),