Integrate AXO payment process

This commit is contained in:
Pedro Silva 2024-04-08 11:31:12 +01:00
parent 4e4f00acf5
commit 9391865217
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
8 changed files with 109 additions and 22 deletions

View file

@ -6,14 +6,13 @@ class Fastlane {
this.identity = null;
this.profile = null;
this.FastlaneCardComponent = null;
this.FastlaneEmailComponent = null;
this.FastlaneAddressComponent = null;
this.FastlanePaymentComponent = null;
this.FastlaneWatermarkComponent = null;
}
connect(config) {
return new Promise((resolve, reject) => {
window.paypal.Connect(config) // TODO: migrate from 0.6 to 0.7
window.paypal.Fastlane(config)
.then((result) => {
this.init(result);
console.log('[AXO] Connected', result);
@ -30,10 +29,9 @@ class Fastlane {
this.connection = connection;
this.identity = this.connection.identity;
this.profile = this.connection.profile;
this.FastlaneCardComponent = this.connection.ConnectCardComponent; // TODO: migrate from 0.6 to 0.7
this.FastlaneEmailComponent = null; // TODO: migrate from 0.6 to 0.7
this.FastlaneAddressComponent = null; // TODO: migrate from 0.6 to 0.7
this.FastlaneWatermarkComponent = this.connection.ConnectWatermarkComponent // TODO: migrate from 0.6 to 0.7
this.FastlaneCardComponent = this.connection.FastlaneCardComponent;
this.FastlanePaymentComponent = this.connection.FastlanePaymentComponent;
this.FastlaneWatermarkComponent = this.connection.FastlaneWatermarkComponent
console.log('[AXO] Fastlane initialized', this);
}