Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
#1 propagate the stripeAccount if it's present
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Jun 15, 2019
1 parent b584dc1 commit 08bbe57
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ export class StripePaymentProxyComponent implements OnChanges, OnDestroy {

private configureSCA() {
const options = {};

if(this.parameters['stripeConnectedAccount']) {
options['stripeAccount'] = this.parameters['stripeConnectedAccount'];
}

const stripeHandler = Stripe(this.parameters['stripe_p_key'], options);
const card = stripeHandler.elements({locale: this.translate.currentLang}).create('card', {style: STRIPE_V3_STYLE});

Expand Down

0 comments on commit 08bbe57

Please sign in to comment.