Skip to content

As per Indian regulations, only registered Indian businesses (i.e. sole proprietorships, limited liability partnerships and companies, but not individuals) can accept international payments. More info here: https://stripe.com/docs/india-exports\" error. #74

@bedamatta05

Description

@bedamatta05

In the chapter https://serverless-stack.com/chapters/test-the-billing-api.html,
while deploying serverless invoke local --function billing --path mocks/billing-event.json
getting the following error, please help in solving.

type: 'StripeInvalidRequestError',
raw: {
message: 'As per Indian regulations, only registered Indian businesses (i.e. sole proprietorships, limited liability partnerships and companies, but not individuals) can accept international payments. More info here: https://stripe.com/docs/india-exports',
type: 'invalid_request_error',
headers: {
server: 'nginx',
date: 'Sun, 30 May 2021 18:52:58 GMT',
'content-type': 'application/json',
'content-length': '320',
connection: 'keep-alive',
'access-control-allow-credentials': 'true',
'access-control-allow-methods': 'GET, POST, HEAD, OPTIONS, DELETE',
'access-control-allow-origin': '',
'access-control-expose-headers': 'Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required',
'access-control-max-age': '300',
'cache-control': 'no-cache, no-store',
'request-id': 'req_LVnzgWWg4WuYRp',
'stripe-version': '2020-08-27',
'x-stripe-c-cost': '1',
'strict-transport-security': 'max-age=31556926; includeSubDomains; preload'
},
statusCode: 400,
requestId: 'req_LVnzgWWg4WuYRp'
},
rawType: 'invalid_request_error',
code: undefined,
doc_url: undefined,
param: undefined,
detail: undefined,
headers: {
server: 'nginx',
date: 'Sun, 30 May 2021 18:52:58 GMT',
'content-type': 'application/json',
'content-length': '320',
connection: 'keep-alive',
'access-control-allow-credentials': 'true',
'access-control-allow-methods': 'GET, POST, HEAD, OPTIONS, DELETE',
'access-control-allow-origin': '
',
'access-control-expose-headers': 'Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required',
'access-control-max-age': '300',
'cache-control': 'no-cache, no-store',
'request-id': 'req_LVnzgWWg4WuYRp',
'stripe-version': '2020-08-27',
'x-stripe-c-cost': '1',
'strict-transport-security': 'max-age=31556926; includeSubDomains; preload'
},
requestId: 'req_LVnzgWWg4WuYRp',
statusCode: 400,
charge: undefined,
decline_code: undefined,
payment_intent: undefined,
payment_method: undefined,
payment_method_type: undefined,
setup_intent: undefined,
source: undefined
}
{
"statusCode": 500,
"body": "{"error":"As per Indian regulations, only registered Indian businesses (i.e. sole proprietorships, limited liability partnerships and companies, but not individuals) can accept international payments. More info here: https://stripe.com/docs/india-exports\"}",
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Credentials": true
}
}

I've tried to solve this issue by using https://discourse.serverless-stack.com/t/test-the-billing-api/172/20
Still it didn't work for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions