Update with Stripe Connect options
This commit is contained in:
parent
809236e080
commit
6998053ab4
1 changed files with 14 additions and 1 deletions
|
|
@ -16,8 +16,21 @@ class StripeBrowserPay {
|
|||
}
|
||||
|
||||
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(
|
||||
document.querySelector('meta[name=stripe-publishable-key]')?.content
|
||||
document.querySelector('meta[name=stripe-publishable-key]')?.content,
|
||||
config
|
||||
);
|
||||
|
||||
this.elements = this.stripe.elements();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue