summit-registration-lite 6.0.3 → 6.0.4-beta.1
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 +18 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2512,7 +2512,9 @@ const stripeErrorCodeMap = {
|
|
|
2512
2512
|
};
|
|
2513
2513
|
|
|
2514
2514
|
const StripeForm = ({
|
|
2515
|
+
reservation,
|
|
2515
2516
|
payTicket,
|
|
2517
|
+
userProfile,
|
|
2516
2518
|
provider,
|
|
2517
2519
|
hidePostalCode,
|
|
2518
2520
|
stripeReturnUrl,
|
|
@@ -2563,20 +2565,23 @@ const StripeForm = ({
|
|
|
2563
2565
|
// Create a payment method using PaymentElement
|
|
2564
2566
|
let createPaymentMethodOptions = {
|
|
2565
2567
|
elements
|
|
2566
|
-
};
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2568
|
+
};
|
|
2569
|
+
createPaymentMethodOptions = stripe_form_objectSpread(stripe_form_objectSpread({}, createPaymentMethodOptions), {}, {
|
|
2570
|
+
params: {
|
|
2571
|
+
billing_details: {
|
|
2572
|
+
address: {
|
|
2573
|
+
city: userProfile.locality || "",
|
|
2574
|
+
country: userProfile.country || "",
|
|
2575
|
+
line1: userProfile.address1 || "",
|
|
2576
|
+
line2: userProfile.address2 || "",
|
|
2577
|
+
postal_code: hidePostalCode ? "" : userProfile.postal_code || "",
|
|
2578
|
+
state: userProfile.region || ""
|
|
2579
|
+
},
|
|
2580
|
+
email: userProfile.email,
|
|
2581
|
+
name: `${reservation.owner_first_name} ${reservation.owner_last_name}`
|
|
2576
2582
|
}
|
|
2577
|
-
}
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2583
|
+
}
|
|
2584
|
+
});
|
|
2580
2585
|
const {
|
|
2581
2586
|
paymentMethod,
|
|
2582
2587
|
error
|