Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bedamatta05 opened this issue May 30, 2021 · 0 comments

Comments

@bedamatta05
Copy link

bedamatta05 commented May 30, 2021

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.

@bedamatta05 bedamatta05 reopened this May 30, 2021
@bedamatta05 bedamatta05 changed the title A valid environment variable to satisfy the declaration 'env:sk_test_STRIPE_TEST_SECRET_KEY' could not be found 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\" error. May 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant