|
@@ -35,6 +35,7 @@ function CheckoutPanel() {
|
|
|
const { t } = useTranslation()
|
|
const { t } = useTranslation()
|
|
|
const {
|
|
const {
|
|
|
couponError,
|
|
couponError,
|
|
|
|
|
+ currencyCode,
|
|
|
planCode,
|
|
planCode,
|
|
|
planName,
|
|
planName,
|
|
|
pricingFormState,
|
|
pricingFormState,
|
|
@@ -214,6 +215,10 @@ function CheckoutPanel() {
|
|
|
setCardIsValid(state.valid)
|
|
setCardIsValid(state.valid)
|
|
|
}, [])
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
+ if (currencyCode === 'INR' && paymentMethod !== 'credit_card') {
|
|
|
|
|
+ setPaymentMethod('credit_card')
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (recurlyLoadError) {
|
|
if (recurlyLoadError) {
|
|
|
return (
|
|
return (
|
|
|
<Alert bsStyle="danger">
|
|
<Alert bsStyle="danger">
|
|
@@ -321,10 +326,12 @@ function CheckoutPanel() {
|
|
|
<strong>{couponError}</strong>
|
|
<strong>{couponError}</strong>
|
|
|
</Alert>
|
|
</Alert>
|
|
|
)}
|
|
)}
|
|
|
- <PaymentMethodToggle
|
|
|
|
|
- onChange={handlePaymentMethod}
|
|
|
|
|
- paymentMethod={paymentMethod}
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ {currencyCode === 'INR' ? null : (
|
|
|
|
|
+ <PaymentMethodToggle
|
|
|
|
|
+ onChange={handlePaymentMethod}
|
|
|
|
|
+ paymentMethod={paymentMethod}
|
|
|
|
|
+ />
|
|
|
|
|
+ )}
|
|
|
{elements.current && (
|
|
{elements.current && (
|
|
|
<CardElement
|
|
<CardElement
|
|
|
className={classnames({ hidden: !isCreditCardPaymentMethod })}
|
|
className={classnames({ hidden: !isCreditCardPaymentMethod })}
|