SAP-samples / btp-create-api-integrations

Create your own digital experiences with SAP Build and SAP Integration Suite to operationalize access requests, federate APIs from disparate gateways, and monetize their use.
https://blogs.sap.com/2022/12/01/monetize-your-api-with-sap-btp-and-stripe/
Apache License 2.0
10 stars 11 forks source link

Invoice creation fails with HTTP 400 #7

Closed martinfrick closed 2 years ago

martinfrick commented 2 years ago

Issue: When triggering the invoice creation, the service does not return a success message. In the pod logs you can see the following error message which is thrown right after the POST call is reaching the action endpoint.

[cds] - POST /invoicing/createStripeInvoices
StripeInvalidRequestError: The search feature is temporarily unavailable in your region. ... statusCode: 400,
charge: undefined,
decline_code: undefined,
payment_intent: undefined, ...

Solution: Your Stripe account is probably setup in India. India is the only country not supporting a dedicated search feature required by the solution. Please create another Stripe account in any other country than India. You can do so by clicking on the name of your Stripe account in the top left when being logged in on the stripe.com website.

jmsrpp commented 2 years ago

Thanks a lot for this @martinfrick!