mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Baremetrics BMPay breaks with CSP turned [sc-25011]
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
962ae5231d
commit
9b422e5c97
|
@ -44,12 +44,6 @@ return [
|
||||||
'secret' => env('STRIPE_SECRET'),
|
'secret' => env('STRIPE_SECRET'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'baremetrics' => [
|
|
||||||
'enabled' => env('ENABLE_BMPAY', false),
|
|
||||||
'app_key' => env('BMPAY_PUBLIC_KEY', null),
|
|
||||||
'stripe_id' => env('BMPAY_STRIPE_ID', null),
|
|
||||||
],
|
|
||||||
|
|
||||||
'google' => [
|
'google' => [
|
||||||
'maps_api_key' => env('GOOGLE_MAPS_API'),
|
'maps_api_key' => env('GOOGLE_MAPS_API'),
|
||||||
],
|
],
|
||||||
|
|
|
@ -1136,8 +1136,5 @@ dir="{{ Helper::determineLanguageDirection() }}">
|
||||||
</script>
|
</script>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@include('partials.bpay')
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
@can('admin')
|
|
||||||
@if ((config('services.baremetrics.enabled')=='true') && (config('services.baremetrics.app_key')) && (config('services.baremetrics.stripe_id')))
|
|
||||||
<script>
|
|
||||||
!function(){if(window.barepay&&window.barepay.created)window.console&&console.error&&console.error("Barepay snippet included twice.");else{window.barepay={created:!0};var a=document.createElement("script");a.src="https://baremetrics-dunning.baremetrics.com/js/application.js",a.async=!0;var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b),
|
|
||||||
|
|
||||||
window.barepay.params = {
|
|
||||||
access_token_id: "{{ config('services.baremetrics.app_key') }}", // Your Recover API public key
|
|
||||||
customer_oid: "{{ config('services.baremetrics.stripe_id') }}" // Customer ID whose card you're looking to update
|
|
||||||
}
|
|
||||||
|
|
||||||
}}();
|
|
||||||
</script>
|
|
||||||
@else
|
|
||||||
@endif
|
|
||||||
@endcan
|
|
Loading…
Reference in a new issue