#shubh_99
1 messages · Page 1 of 1 (latest)
Hi 👋 what are you looking for assistance with?
@tranquil stirrup I've created a thread for you here, let's use it to chat.
Pasting your other messages for context:
Anyone can provide me test api detils of USA
Please any one can provide ne test api detils of us
24-Jul-2023 13:31:58 UTC] PHP Fatal error: Uncaught Stripe\Error\InvalidRequest: 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 in /home/mygolive/public_html/ingo/in/I/Y/stripe-php/lib/ApiRequestor.php:125
Stack trace:
#0 /home/mygolive/public_html/ingo/in/I/Y/stripe-php/lib/ApiRequestor.php(99): Stripe\ApiRequestor::_specificAPIError('{\n "error": {\n...', 400, Array, Array, Array)
#1 /home/mygolive/public_html/ingo/in/I/Y/stripe-php/lib/ApiRequestor.php(310): Stripe\ApiRequestor->handleErrorResponse('{\n "error": {\n...', 400, Array, Array)
#2 /home/mygolive/public_html/ingo/in/I/Y/stripe-php/lib/ApiRequestor.php(61): Stripe\ApiRequestor->_interpretResponse('{\n "error": {\n...', 400, Array)
#3 /home/mygolive/public_html/ingo/in/I/Y/stripe-php/lib/ApiOperations/Request.php(56): Stripe\ApiRequestor->request('post', '/v1/charges', Array, Array)
#4 /home/mygolive/public_html/ingo/in/I/Y/stripe-php/lib/ApiOperations/Create.php(23): Stripe\ApiResource::_staticRequest('post', '/v1/charges', Array, NULL)
#5 /home/mygolive/public_html/ingo/in/I/Y/process.php(57): Stripe\Charge::create(Array)
#6 {main}
thrown in /home/mygolive/public_html/ingo/in/I/Y/stripe-php/lib/ApiRequestor.php on line 125
[24-Jul-2023 13:38:56 UTC] PHP Fatal error: Uncaught Stripe\Error\InvalidRequest: PaymentMethods of type card cannot be attached to Customers directly without 3DS due to Indian payment regulations. Please instead provide the PaymentMethod and Customer alongside a SetupIntent or PaymentIntent with the setup_future_usage parameter. See https://support.stripe.com/questions/guide-for-saving-cards-in-india for more details. in /home/mygolive/public_html/ingo/in/I/Y/stripe-php/lib/ApiRequestor.php:125
I don't understand what you say when you ask for test api details of USA, can you clarify what you're looking for?
Are you wanting to test with a Stripe account based in the US?
Then you will want to create a test account based in the US and use the API keys for that account for your testing.
Can you share the ID of the request that threw that error?
req_tDZAgoculdMKil
I can send you my code also
I want it for USA and i can't test even
That request is to create a Customer, and threw a different error due it being passed an ID of a Token that belongs to a different account. That doesn't align with the error message you provided previously.
I don't even know what the error is so far. You mentioned one error, then provided a request that is throwing a completely different error.
Solve what?
Error
Which is occurring
It's smalll error but i am unable to solve
Please see it
The problem with the request you shared is that you're trying to use a Token from another account, you can't do that. Your requests can only reference objects from the same account (unless you're using Stripe Connect).
But i am using same details and of single account
I don't know what that means, all I know is your request is clearly using the ID of a Token that belongs to a different account.
If the Token was from the same account, you wouldn't encounter an error.
That publishable key looks right for your account, but I don't see any requests in that account to create a Token, are you sure the code you're showing me is what is currently deployed in your test site?
Sorry, I'm going to need a lot more context to understand what you're asking for help with.
Wait
Please test this code with my api details of
So you will see it please 🥺
Can you clearly articulate your concern? I'm still not clear what error you're worried about.
Bro i can send you my api detils of test?
You shouldn't, you should never expose your secret API details.
Test bro
pk_test_51NX5GbIxj8wY16xia0Zm5f7CUqMw5tbhFuDbFbkKrzcZKc3CgPD0bopgnrU0P33hMYDfDQ9Ip2tPHzYXzvTalKsW00S4knKNFF
Pub key
sk_test_51NX5GbIxj8wY16xixoYW1LEfjQPYLGCm5VMuocRjnpJvQmTon1LXtfdVPAJAZVv87a738fN2wNXxI70CrAqZeWht00bsi5CFXq
sec key
You should roll that secret key now that it has been exposed in a public forum
Just test and make it work
make what work exactly? Also, are you following any guides?