mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 03:07:01 +00:00
Update stripe integration to latest sdk version
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user