Added BM JS

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-04-06 16:19:33 -07:00
parent 383d48fd9c
commit 6ff3745adf
3 changed files with 951 additions and 885 deletions

View file

@ -43,10 +43,10 @@ return [
'secret' => env('STRIPE_SECRET'),
],
'stunning' => [
'enabled' => env('ENABLE_STUNNING', false),
'app_key' => env('STUNNING_APP_KEY'),
'stripe_id' => env('STUNNING_STRIPE_ID'),
'baremetrics' => [
'enabled' => env('ENABLE_BMPAY', false),
'app_key' => env('BMPAY_PUBLIC_KEY', null),
'stripe_id' => env('BMPAY_STRIPE_ID', null),
],
'google' => [

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,14 @@
@can('admin')
@if (config('services.baremetrics.enabled'))
<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>
@endif
@endcan