You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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.
The text was updated successfully, but these errors were encountered: