mirror of
https://github.com/bitinflow/accounts.git
synced 2026-11-01 05:09:07 +00:00
Update CheckoutSessions.php
This commit is contained in:
1 parent
87fc416b44
commit
7dad10bd47
1 file changed
+4
-4
@@ -11,22 +11,22 @@ class CheckoutSessions
|
|||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public function createCheckoutSession(array $payload)
|
public function create(array $payload)
|
||||||
{
|
{
|
||||||
return $this->user->asPaymentsUser('POST', 'checkout-sessions', $payload);
|
return $this->user->asPaymentsUser('POST', 'checkout-sessions', $payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCheckoutSession(string $id)
|
public function get(string $id)
|
||||||
{
|
{
|
||||||
return $this->user->asPaymentsUser('GET', sprintf('checkout-sessions/%s', $id));
|
return $this->user->asPaymentsUser('GET', sprintf('checkout-sessions/%s', $id));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function checkoutCheckoutSession(string $id)
|
public function checkout(string $id)
|
||||||
{
|
{
|
||||||
return $this->user->asPaymentsUser('PUT', sprintf('checkout-sessions/%s/checkout', $id));
|
return $this->user->asPaymentsUser('PUT', sprintf('checkout-sessions/%s/checkout', $id));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function revokeCheckoutSession(string $id)
|
public function revoke(string $id)
|
||||||
{
|
{
|
||||||
return $this->user->asPaymentsUser('PUT', sprintf('checkout-sessions/%s/revoke', $id));
|
return $this->user->asPaymentsUser('PUT', sprintf('checkout-sessions/%s/revoke', $id));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user