♻️ Unify constructor arguments of PaymentButton

Factory method and constuctor have same arguments in the same order
This commit is contained in:
Philipp Stracker 2024-08-08 14:05:57 +02:00
parent 9ac4300995
commit 7729007774
No known key found for this signature in database
2 changed files with 32 additions and 5 deletions

View file

@ -93,12 +93,18 @@ class GooglepayButton extends PaymentButton {
constructor(
context,
externalHandler,
buttonConfig,
ppcpConfig,
externalHandler,
contextHandler
) {
super( context, buttonConfig, ppcpConfig, contextHandler );
super(
context,
externalHandler,
buttonConfig,
ppcpConfig,
contextHandler
);
this.onPaymentAuthorized = this.onPaymentAuthorized.bind( this );
this.onPaymentDataChanged = this.onPaymentDataChanged.bind( this );