user image

Eslam Zedan
Published in : 2022-03-02

Send to the Stripe where the payment is going for taxes perpose

Laravel

Hello,

I have a stripe account and set in the dashboard my taxes to be handled that anyone pay inside Canada will take taxes but anyone who pays outside Canada will not take taxes.

in the API I send the amount and description only 

Stripe\Stripe::setApiKey(env('STRIPE_SECRET'));
Stripe\Charge::create([
	"amount" => $price * 100,
	"currency" => "cad",
	"source" => $request->stripeToken,
	"description" => $MyDescription
]);

Now how I can tell the stripe that payment going from where?

any help?

Thanks

Comments

There is no comments yet

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

Laravel Network is unreachable stream_socket_client 587
Publish date: 2022-02-16 | Comments: 4
Get user location (city - country) from his IP address
Publish date: 2022-03-02 | Comments: 2
How to get original attribute value in Laravel?
Publish date: 2022-02-23 | Comments: 3
Method Illuminate\Auth\RequestGuard::attempt does not exist.
Publish date: 2022-02-18 | Comments: 2
What's the best approach to use Elasticsearch with Larave?
Publish date: 2022-02-21 | Comments: 2
[solved] Class "App\Exceptions\Client" not found
Publish date: 2022-02-09 | Comments: 2