mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Add AXO order processing
This commit is contained in:
parent
e0dd215d92
commit
7003639c85
5 changed files with 191 additions and 15 deletions
|
@ -206,7 +206,7 @@ class AxoManager {
|
|||
|
||||
document.querySelector(this.elements.paymentContainer.selector)?.classList.remove('hidden');
|
||||
|
||||
this.connectCardComponent = await this.fastlane
|
||||
this.cardComponent = await this.fastlane
|
||||
.FastlaneCardComponent(MockData.cardComponent())
|
||||
.render(this.elements.paymentContainer.selector);
|
||||
}
|
||||
|
@ -214,7 +214,7 @@ class AxoManager {
|
|||
|
||||
onClickSubmitButton() {
|
||||
try {
|
||||
this.connectCardComponent.tokenize(MockData.cardComponentTokenize()).then((response) => {
|
||||
this.cardComponent.tokenize(MockData.cardComponentTokenize()).then((response) => {
|
||||
this.submit(response.nonce);
|
||||
});
|
||||
} catch (e) {
|
||||
|
@ -249,6 +249,9 @@ class AxoManager {
|
|||
// .catch(error => {
|
||||
// console.error('There has been a problem with your fetch operation:', error);
|
||||
// });
|
||||
|
||||
// Submit form.
|
||||
document.querySelector(this.elements.defaultSubmitButton.selector).click();
|
||||
}
|
||||
|
||||
useEmailWidget() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue