Added metadata to stripe payment intent
Change-Id: I87f18597b271162e19f86338536aa8c9ef03677d
This commit is contained in:
parent
e0793f886c
commit
7f3884a95d
@ -82,6 +82,11 @@ final class StripeApi implements IPaymentGatewayAPI
|
||||
$request['receipt_email']= trim($payload['receipt_email']);
|
||||
}
|
||||
|
||||
if(isset($payload['metadata']))
|
||||
{
|
||||
$request['metadata']= $payload['metadata'];
|
||||
}
|
||||
|
||||
$intent = PaymentIntent::create($request);
|
||||
|
||||
return [
|
||||
|
@ -1753,6 +1753,10 @@ final class SummitLocationService
|
||||
"amount" => $reservation->getAmount(),
|
||||
"currency" => $reservation->getCurrency(),
|
||||
"receipt_email" => $reservation->getOwner()->getEmail(),
|
||||
"metadata" => [
|
||||
"type" => "bookable_room_reservation",
|
||||
"room_id" => $room->getId(),
|
||||
]
|
||||
]
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user