hexters / CoinPayment

Package to handle payment of cryptocurrency
https://www.coinpayments.net/index.php?ref=3dc0c5875304cc5cc1d98782c2741cb5
MIT License
73 stars 42 forks source link

Loading of mixxed content has been blocked. [HTTPS/SSL PROBLEM] #56

Closed antonmk4 closed 3 years ago

antonmk4 commented 3 years ago

The problem:

the transaction is not loading: problem

I'm using clodflare as an proxy and i'm using "Automatic HTTPS Rewrites".

I tried everything but it just doesnt seem to work. Even tried Cloudflare Page Roules to force HTTPs

hexters commented 3 years ago

look at the page source and find the _host attribute in<form-transaction _host="?" what is the value?

antonmk4 commented 3 years ago

You mean this? "show.blade.php"?

<div id="app">
    <form-transaction _checkouturl="{{ request()->fullurl() }}" _host="{{ url('/') }}" _payload="{{ $payload }}"></form-transaction>
</div>

i tried to change the _host value to my domain value. Nothing changed...

antonmk4 commented 3 years ago

look at the page source and find the _host attribute in<form-transaction _host="?" what is the value?

Page source says: _host="https://MYDOMAIN.com"

this my show.blade.php now:

`

</div>

`

Nothing changed..

Console says: Loading from mixxed content "http://domain.com/coinpayment/ajax/payload" has been blocked. coinpayment.js:1:177359

and:

Uncaught (in promise) TypeError: e.response is undefined coinpayment.js:1:632970

hexters commented 3 years ago

Try to open App\Providers\AppServiceProvider


. . .
namespace App\Providers;

use Illuminate\Support\Facades\URL; // add this

. . . 

public function boot()
{
      URL::forceScheme('https');
antonmk4 commented 3 years ago

//

Try to open App\Providers\AppServiceProvider

. . .
namespace App\Providers;

use Illuminate\Support\Facades\URL; // add this

. . . 

public function boot()
{
      URL::forceScheme('https');

// Working, thanks!