Payment error with subscription (Stripe API integration )

Hi , i am using stripe payment API integration and whenever trying to make payment i can see this error “The payment failed, please try again with a different card.”

Our company is based in India but implementing for global customers. I am aware of India international payment limitations and issues with different card and i am using just those cards which are authorized for international transactions.

Stripe log doesn’t show any error. Kindly help if any of you are aware of this.
Thanks

Hi Vikash,

Are you using Stripe test keys in your integration? https://dashboard.stripe.com/test/apikeys Wp admin > s2Member Pro > Stripe Options > Account Details > Sandbox/Test mode

Then you can use their test cards from here: https://stripe.com/docs/testing

Keep logging enabled in s2Member while you test/troubleshoot. Wp admin > s2Member Pro > Log Files

And check also the logs on Stripe’s side, for additional details that’d help understand the failed payment. https://dashboard.stripe.com/test/logs

:slight_smile:

Thanks for your reply, i used test credentials and its working now trying live. I am getting this error on stripe

Above issue resolved but still payment not processing.

one more update, stripe doesn’t support USD for Indian buyers so for Indian buyer we have to use currency INR, How can we change currency to INR on joining form when user is from INdia? do you have such feature or you suggest something here?

Thanks for the update.

stripe doesn’t support USD for Indian buyers so for Indian buyer we have to use currency INR, How can we change currency to INR on joining form when user is from INdia?

You can use currency code attribute in the pro-form’s shortcode: cc="INR". WP Admin > s2Member Pro > Stripe Pro-Forms > Shortcode Attributes > cc

If you need to change this dynamically based on the user’s location, you’ll need a bit of custom PHP to determine that, and change the currency in the shortcode accordingly… https://www.primothemes.com/forums/viewtopic.php?f=36&t=1604

:slight_smile: