feat(payment): support user-bound seven-discount offers
Docker Image / Build and Push Docker Image (push) Successful in 1m55s
Docker Image / Build and Push Docker Image (push) Successful in 1m55s
This commit is contained in:
@@ -82,6 +82,8 @@ export const ROUTE_BUILDERS = {
|
||||
returnTo?: Exclude<AppSubscriptionReturnTo, null>;
|
||||
sourceCharacterSlug?: string;
|
||||
analytics?: PaymentAnalyticsContext;
|
||||
planId?: string;
|
||||
commercialOfferId?: string;
|
||||
} = {},
|
||||
): `/subscription?${string}` => {
|
||||
const params = new URLSearchParams({ type });
|
||||
@@ -90,6 +92,10 @@ export const ROUTE_BUILDERS = {
|
||||
if (options.sourceCharacterSlug) {
|
||||
params.set("character", options.sourceCharacterSlug);
|
||||
}
|
||||
if (options.planId) params.set("planId", options.planId);
|
||||
if (options.commercialOfferId) {
|
||||
params.set("commercialOfferId", options.commercialOfferId);
|
||||
}
|
||||
if (options.analytics) {
|
||||
params.set(
|
||||
PAYMENT_ANALYTICS_ENTRY_PARAM,
|
||||
|
||||
Reference in New Issue
Block a user