Try ERPNext Buy Support Partners Foundation

Stripe Payment Error

Hi,

I have successfully integrated the stripe with erpnext and sent payment request to my client, but he ended up with error while paying, the error was “something went wrong”.

I checked in erp error logs which throws following error.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/stripe_settings/stripe_settings.py”, line 79, in create_charge_on_stripe
charge = stripe.Charge.create(amount=cint(flt(self.data.amount)*100), currency=self.data.currency, source=self.data.stripe_token_id, description=self.data.description, receipt_email=self.data.payer_email)
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/stripe/api_resources/abstract/createable_api_resource.py”, line 22, in create
response, api_key = requestor.request(“post”, url, params, headers)
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/stripe/api_requestor.py”, line 122, in request
resp = self.interpret_response(rbody, rcode, rheaders)
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/stripe/api_requestor.py”, line 373, in interpret_response
self.handle_error_response(rbody, rcode, resp.data, rheaders)
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/stripe/api_requestor.py”, line 152, in handle_error_response
raise err
stripe.error.InvalidRequestError: Request req_nPuqXnlOvYbR8l: As per Indian regulations, export transactions require a customer name and address. More info here: https://stripe.com/docs/india-exports

What I can see that it requires customer address and name to get transaction fulfilled, I checked in customer master, the name and address fields are properly filled.

Is there anyone else who is facing same problem? Any suggestions.

Regards