¨4.0.1¨
This commit is contained in:
@@ -12,22 +12,26 @@ class StripeResponse extends GatewayResponse implements HasTransactionReference
|
||||
private $order;
|
||||
private $intent;
|
||||
|
||||
|
||||
public function __construct(Order $order, PaymentIntent $intent)
|
||||
{
|
||||
$this->order = $order;
|
||||
$this->intent = $intent;
|
||||
}
|
||||
|
||||
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->order->id;
|
||||
}
|
||||
|
||||
|
||||
public function getTransactionReference()
|
||||
{
|
||||
return $this->intent->id;
|
||||
}
|
||||
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return parent::toArray() + ['clientSecret' => $this->intent->client_secret];
|
||||
|
||||
Reference in New Issue
Block a user