mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
♻️ Unify constructor arguments of PaymentButton
Factory method and constuctor have same arguments in the same order
This commit is contained in:
parent
9ac4300995
commit
7729007774
2 changed files with 32 additions and 5 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue