Update stripe integration to latest sdk version

This commit is contained in:
David Bomba
2025-09-30 09:27:09 +10:00
parent c9a3100067
commit d60f979df8
6 changed files with 183 additions and 178 deletions

View File

@@ -49,7 +49,7 @@ instant() ? boot() : wait('#stripe-applepay-payment').then(() => boot());
*/
function applePay(options) {
let $options = {
apiVersion: '2018-05-21',
apiVersion: '2024-06-20',
};
if (options.account_id) {

View File

@@ -30,12 +30,12 @@
@if($gateway->company_gateway->getConfigField('account_id'))
var stripe = Stripe('{{ config('ninja.ninja_stripe_publishable_key') }}', {
apiVersion: "2018-05-21",
apiVersion: "2024-06-20",
stripeAccount: '{{ $gateway->company_gateway->getConfigField('account_id') }}',
});
@else
var stripe = Stripe('{{ $gateway->getPublishableKey() }}', {
apiVersion: "2018-05-21",
apiVersion: "2024-06-20",
});
@endif