Implement AXO order processing

Implement AXO settings
This commit is contained in:
Pedro Silva 2024-04-10 15:51:19 +01:00
parent fe03215799
commit c71c56973a
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
20 changed files with 546 additions and 136 deletions

View file

@ -47,9 +47,13 @@ class AxoManager {
this.billingView = new BillingView(this.el.billingAddressContainer.selector, this.el);
this.cardView = new CardView(this.el.paymentContainer.selector + '-details', this.el, this);
document.testAxoStatus = (key, value) => {
document.axoDebugSetStatus = (key, value) => {
this.setStatus(key, value);
}
document.axoDebugObject = (key, value) => {
console.log(this);
}
}
registerEventHandlers() {
@ -549,7 +553,8 @@ class AxoManager {
onClickSubmitButton() {
if (this.data.card) { // Ryan flow
log('Ryan flow.');
this.submit(this.data.card.getPaymentToken());
console.log('this.data.card', this.data.card);
this.submit(this.data.card.id);
} else { // Gary flow
log('Gary flow.');