subos-frontend 1.0.82 → 1.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -612,13 +612,15 @@ var usePlans = () => {
|
|
|
612
612
|
const handlePlanSelect = React10.useCallback((plan) => {
|
|
613
613
|
setSelectedPlan(plan);
|
|
614
614
|
}, []);
|
|
615
|
-
const handleUpgrade = React10.useCallback(async (externalId) => {
|
|
615
|
+
const handleUpgrade = React10.useCallback(async (externalId, options) => {
|
|
616
616
|
var _a;
|
|
617
617
|
if (!selectedPlan) return;
|
|
618
618
|
try {
|
|
619
619
|
const response = await plansApi.createPaymentSession(selectedPlan.code, {
|
|
620
620
|
externalId,
|
|
621
|
-
currency
|
|
621
|
+
currency,
|
|
622
|
+
returnUrl: options == null ? void 0 : options.returnUrl,
|
|
623
|
+
cancelUrl: options == null ? void 0 : options.cancelUrl
|
|
622
624
|
// billableMetricCode: "CANDIDATES"
|
|
623
625
|
});
|
|
624
626
|
if (response.success && ((_a = response.data) == null ? void 0 : _a.checkoutUrl)) {
|