#shubh_99

1 messages · Page 1 of 1 (latest)

pale zealotBOT
royal latch
#

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?

tranquil stirrup
#

Yes

#

Yes bro

#

I need USA test api details

royal latch
#

Then you will want to create a test account based in the US and use the API keys for that account for your testing.

tranquil stirrup
#

I have done that but not working

#

This error showing which i have mentioned

royal latch
#

Can you share the ID of the request that threw that error?

tranquil stirrup
#

req_tDZAgoculdMKil

#

I can send you my code also

#

I want it for USA and i can't test even

royal latch
#

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.

tranquil stirrup
#

Can you solve errors in my code sir

#

I will give you my code

royal latch
#

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.

tranquil stirrup
#

So i will give you my cpanel see it?

#

Please solve it sir 🥺

royal latch
#

Solve what?

tranquil stirrup
#

Error

#

Which is occurring

#

It's smalll error but i am unable to solve

#

Please see it

royal latch
#

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).

tranquil stirrup
#

But i am using same details and of single account

royal latch
#

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.

tranquil stirrup
#

No way all is same

#

See this

royal latch
#

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?

tranquil stirrup
#

Same account

#

Please solve error in my code i am sending you?

royal latch
#

Sorry, I'm going to need a lot more context to understand what you're asking for help with.

tranquil stirrup
#

Wait

#

Please test this code with my api details of

#

So you will see it please 🥺

royal latch
#

I cannot run the code with your API details.

#

That's not a thing that we can do.

tranquil stirrup
#

So i should provide

#

?

royal latch
#

Can you clearly articulate your concern? I'm still not clear what error you're worried about.

tranquil stirrup
#

Bro i can send you my api detils of test?

royal latch
#

You shouldn't, you should never expose your secret API details.

tranquil stirrup
#

Test bro

#

pk_test_51NX5GbIxj8wY16xia0Zm5f7CUqMw5tbhFuDbFbkKrzcZKc3CgPD0bopgnrU0P33hMYDfDQ9Ip2tPHzYXzvTalKsW00S4knKNFF

#

Pub key

#

sk_test_51NX5GbIxj8wY16xixoYW1LEfjQPYLGCm5VMuocRjnpJvQmTon1LXtfdVPAJAZVv87a738fN2wNXxI70CrAqZeWht00bsi5CFXq

#

sec key

royal latch
#

You should roll that secret key now that it has been exposed in a public forum

icy dragon
#

Taking over as toby needs to step away soon

#

Can you clarify what's blocking you?

tranquil stirrup
#

Just test and make it work

icy dragon
#

make what work exactly? Also, are you following any guides?

tranquil stirrup
#

It's not working

#

Please check it sir

icy dragon
#

What's not working though

#

We need more information from you. We can't just download the code and run it to guess what's going wrong.

tranquil stirrup
#

Hello

#

I have used v2 in this

#

Can you please solve it