20 lines
449 B
TypeScript
20 lines
449 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export const CHECKOUT_SESSION = gql`
|
|
mutation CheckoutSession(
|
|
$recurringInterval: SubscriptionInterval!
|
|
$successUrlPath: String
|
|
$plan: BillingPlanKey!
|
|
$requirePaymentMethod: Boolean!
|
|
) {
|
|
checkoutSession(
|
|
recurringInterval: $recurringInterval
|
|
successUrlPath: $successUrlPath
|
|
plan: $plan
|
|
requirePaymentMethod: $requirePaymentMethod
|
|
) {
|
|
url
|
|
}
|
|
}
|
|
`;
|