Rename gateway main method to process
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user