#Sai Harsha

1 messages · Page 1 of 1 (latest)

tall totemBOT
uneven jungle
#

Hi there!

#

I think the error message is pretty clear: you are missing interval_count in your request.

gilded spire
#

I'm passing the value as 'day'

#

Only for 'sporadic' it's working fine, for rest of the values it's giving this error

uneven jungle
gilded spire
#

This is my request body
amount:10000
currency:inr
customer:cus_N4QX8nj5T0J0BD
confirm:true
setup_future_usage:off_session
payment_method_types[]:card
payment_method_data[type]:card
payment_method_data[card][number]:4000003560000123
payment_method_data[card][exp_month]:3
payment_method_data[card][exp_year]:2023
payment_method_data[card][cvc]:314
payment_method_options[card][mandate_options][reference]:asdfghjkkhk1
payment_method_options[card][mandate_options][description]:Juspay
payment_method_options[card][mandate_options][amount]:1000
payment_method_options[card][mandate_options][amount_type]:fixed
payment_method_options[card][mandate_options][start_date]:1672146411
payment_method_options[card][mandate_options][interval]:day
payment_method_options[card][mandate_options][supported_types][]:india
payment_method_options[card][request_three_d_secure]:any

#

Okay when we pass interval as day, interval_count is required?

uneven jungle
#

exactly. As mentioned in the doc I just shared:

payment_method_options.card.mandate_options.interval_count
The number of intervals between payments. For example, interval=month and interval_count=3 indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when interval=sporadic.