mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
58 lines
1.9 KiB
JavaScript
58 lines
1.9 KiB
JavaScript
|
import DomElement from "./DomElement";
|
||
|
|
||
|
class DomElementCollection {
|
||
|
|
||
|
constructor() {
|
||
|
this.gatewayRadioButton = new DomElement({
|
||
|
selector: '#payment_method_ppcp-axo-gateway',
|
||
|
});
|
||
|
|
||
|
this.defaultSubmitButton = new DomElement({
|
||
|
selector: '#place_order',
|
||
|
});
|
||
|
|
||
|
this.paymentContainer = new DomElement({
|
||
|
id: 'ppcp-axo-payment-container',
|
||
|
selector: '#ppcp-axo-payment-container',
|
||
|
className: 'ppcp-axo-payment-container'
|
||
|
});
|
||
|
|
||
|
this.watermarkContainer = new DomElement({
|
||
|
id: 'ppcp-axo-watermark-container',
|
||
|
selector: '#ppcp-axo-watermark-container',
|
||
|
className: 'ppcp-axo-watermark-container'
|
||
|
});
|
||
|
|
||
|
this.emailWidgetContainer = new DomElement({
|
||
|
id: 'ppcp-axo-email-widget',
|
||
|
selector: '#ppcp-axo-email-widget',
|
||
|
className: 'ppcp-axo-email-widget'
|
||
|
});
|
||
|
|
||
|
this.shippingAddressContainer = new DomElement({
|
||
|
id: 'ppcp-axo-shipping-address-container',
|
||
|
selector: '#ppcp-axo-shipping-address-container',
|
||
|
className: 'ppcp-axo-shipping-address-container',
|
||
|
anchorSelector: '.woocommerce-shipping-fields'
|
||
|
});
|
||
|
|
||
|
this.billingAddressContainer = new DomElement({
|
||
|
id: 'ppcp-axo-billing-address-container',
|
||
|
selector: '#ppcp-axo-billing-address-container',
|
||
|
className: 'ppcp-axo-billing-address-container',
|
||
|
anchorSelector: '.woocommerce-billing-fields__field-wrapper'
|
||
|
});
|
||
|
|
||
|
this.fieldBillingEmail = new DomElement({
|
||
|
selector: '#billing_email_field'
|
||
|
});
|
||
|
|
||
|
this.submitButtonContainer = new DomElement({
|
||
|
selector: '#ppcp-axo-submit-button-container',
|
||
|
buttonSelector: '#ppcp-axo-submit-button-container button'
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default DomElementCollection;
|