thephpleague / omnipay-stripe

Stripe driver for the Omnipay PHP payment processing library
MIT License
185 stars 168 forks source link

Unable to send Stripe request #197

Closed ssbing99 closed 3 years ago

ssbing99 commented 3 years ago

Hi I'm trying to send the stripe request on ubuntu server

$response = $gateway->purchase([ 'amount' => $amount, 'currency' => $currency, 'token' => $token, 'confirm' => true, 'description' => auth()->user()->name ])->send();

but it throws "Invalid request: unsupported Content-Type . If error persists and you need assistance, please contact support@stripe.com." , but I tried at my local is ok, any idea?

ssbing99 commented 3 years ago

https://stackoverflow.com/questions/66241686/laravel-omnipay-stripe-unable-to-send-request-on-linux/66290005#66290005