mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update with Stripe Connect options
This commit is contained in:
parent
809236e080
commit
6998053ab4
@ -16,8 +16,21 @@ class StripeBrowserPay {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
let config = {};
|
||||||
|
|
||||||
|
if (document.querySelector('meta[name=stripe-account-id]')) {
|
||||||
|
config.apiVersion = '2020-08-27';
|
||||||
|
|
||||||
|
config.stripeAccount = document.querySelector(
|
||||||
|
'meta[name=stripe-account-id]'
|
||||||
|
)?.content;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(config);
|
||||||
|
|
||||||
this.stripe = Stripe(
|
this.stripe = Stripe(
|
||||||
document.querySelector('meta[name=stripe-publishable-key]')?.content
|
document.querySelector('meta[name=stripe-publishable-key]')?.content,
|
||||||
|
config
|
||||||
);
|
);
|
||||||
|
|
||||||
this.elements = this.stripe.elements();
|
this.elements = this.stripe.elements();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user