42 add billing portal endpoint (#4315)

* Add create billing portal session endpoint

* Rename checkout to checkoutSession

* Code review returns
This commit is contained in:
martmull
2024-03-05 15:28:45 +01:00
committed by GitHub
parent 1f00af286b
commit 28a093d495
9 changed files with 118 additions and 49 deletions

View File

@ -1,8 +1,11 @@
import { gql } from '@apollo/client';
export const CHECKOUT = gql`
mutation Checkout($recurringInterval: String!, $successUrlPath: String) {
checkout(
export const CHECKOUT_SESSION = gql`
mutation CheckoutSession(
$recurringInterval: String!
$successUrlPath: String
) {
checkoutSession(
recurringInterval: $recurringInterval
successUrlPath: $successUrlPath
) {