airwallex-payment-elements
Advanced tools
Comparing version 0.0.22 to 0.0.23
import { LitElement } from 'lit-element'; | ||
export declare class Airwallex extends LitElement { | ||
gatewayBaseurl: string; | ||
merchantId: string; | ||
authentication: string; | ||
countryOrRegion: string; | ||
currency: string; | ||
attemptId: string; | ||
@@ -8,3 +12,3 @@ successUrl: string; | ||
errorUrl: string; | ||
options: object; | ||
theme: object; | ||
constructor(); | ||
@@ -16,2 +20,18 @@ static readonly properties: { | ||
}; | ||
merchantId: { | ||
type: StringConstructor; | ||
reflect: boolean; | ||
}; | ||
authentication: { | ||
type: StringConstructor; | ||
reflect: boolean; | ||
}; | ||
countryOrRegion: { | ||
type: StringConstructor; | ||
reflect: boolean; | ||
}; | ||
currency: { | ||
type: StringConstructor; | ||
reflect: boolean; | ||
}; | ||
attemptId: { | ||
@@ -33,3 +53,3 @@ type: StringConstructor; | ||
}; | ||
options: { | ||
theme: { | ||
type: ObjectConstructor; | ||
@@ -36,0 +56,0 @@ reflect: boolean; |
@@ -6,4 +6,5 @@ import { css, html, LitElement } from 'lit-element'; | ||
super(); | ||
this.gatewayBaseurl = this.attemptId = this.successUrl = this.cancelUrl = this.errorUrl = ''; | ||
this.options = {}; | ||
this.gatewayBaseurl = this.merchantId = this.authentication = this.countryOrRegion = ''; | ||
this.currency = this.attemptId = this.successUrl = this.cancelUrl = this.errorUrl = ''; | ||
this.theme = {}; | ||
} | ||
@@ -13,2 +14,6 @@ static get properties() { | ||
gatewayBaseurl: { type: String, reflect: true }, | ||
merchantId: { type: String, reflect: true }, | ||
authentication: { type: String, reflect: true }, | ||
countryOrRegion: { type: String, reflect: true }, | ||
currency: { type: String, reflect: true }, | ||
attemptId: { type: String, reflect: true }, | ||
@@ -18,3 +23,3 @@ successUrl: { type: String, reflect: true }, | ||
errorUrl: { type: String, reflect: true }, | ||
options: { type: Object, reflect: true } | ||
theme: { type: Object, reflect: true } | ||
}; | ||
@@ -50,6 +55,4 @@ } | ||
const transactionId = event.data.payment_transaction_id | ||
? | ||
`&transactionId=${event.data.payment_transaction_id}` | ||
: | ||
''; | ||
? `&transactionId=${event.data.payment_transaction_id}` | ||
: ''; | ||
const parameters = `${attemptId}${instrumentId}${transactionId}`; | ||
@@ -106,3 +109,3 @@ if (this.successUrl) { | ||
src="${this.gatewayBaseurl}/checkout/${this.attemptId}?origin=${window.location | ||
.origin}&options=${JSON.stringify(this.options)}" | ||
.origin}&merchantId=${this.merchantId}&authentication=${this.authentication}&countryOrRegion=${this.countryOrRegion}¤cy=${this.currency}theme=${JSON.stringify(this.theme)}" | ||
title="Secure airwallex payment frame" | ||
@@ -109,0 +112,0 @@ /> |
import { LitElement } from 'lit-element'; | ||
export declare class Airwallex extends LitElement { | ||
gatewayBaseurl: string; | ||
merchantId: string; | ||
authentication: string; | ||
countryOrRegion: string; | ||
currency: string; | ||
attemptId: string; | ||
@@ -8,3 +12,3 @@ successUrl: string; | ||
errorUrl: string; | ||
options: object; | ||
theme: object; | ||
constructor(); | ||
@@ -16,2 +20,18 @@ static readonly properties: { | ||
}; | ||
merchantId: { | ||
type: StringConstructor; | ||
reflect: boolean; | ||
}; | ||
authentication: { | ||
type: StringConstructor; | ||
reflect: boolean; | ||
}; | ||
countryOrRegion: { | ||
type: StringConstructor; | ||
reflect: boolean; | ||
}; | ||
currency: { | ||
type: StringConstructor; | ||
reflect: boolean; | ||
}; | ||
attemptId: { | ||
@@ -33,3 +53,3 @@ type: StringConstructor; | ||
}; | ||
options: { | ||
theme: { | ||
type: ObjectConstructor; | ||
@@ -36,0 +56,0 @@ reflect: boolean; |
{ | ||
"name": "airwallex-payment-elements", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
@@ -7,2 +7,6 @@ import { css, html, LitElement } from 'lit-element'; | ||
gatewayBaseurl: string; | ||
merchantId: string; | ||
authentication: string; | ||
countryOrRegion: string; | ||
currency: string; | ||
attemptId: string; | ||
@@ -12,7 +16,8 @@ successUrl: string; | ||
errorUrl: string; | ||
options: object; | ||
theme: object; | ||
constructor() { | ||
super(); | ||
this.gatewayBaseurl = this.attemptId = this.successUrl = this.cancelUrl = this.errorUrl = ''; | ||
this.options = {}; | ||
this.gatewayBaseurl = this.merchantId = this.authentication = this.countryOrRegion = ''; | ||
this.currency = this.attemptId = this.successUrl = this.cancelUrl = this.errorUrl = ''; | ||
this.theme = {}; | ||
} | ||
@@ -22,2 +27,6 @@ static get properties() { | ||
gatewayBaseurl: { type: String, reflect: true }, | ||
merchantId: { type: String, reflect: true }, | ||
authentication: { type: String, reflect: true }, | ||
countryOrRegion: { type: String, reflect: true }, | ||
currency: { type: String, reflect: true }, | ||
attemptId: { type: String, reflect: true }, | ||
@@ -27,3 +36,3 @@ successUrl: { type: String, reflect: true }, | ||
errorUrl: { type: String, reflect: true }, | ||
options: { type: Object, reflect: true } | ||
theme: { type: Object, reflect: true } | ||
}; | ||
@@ -60,6 +69,4 @@ } | ||
const transactionId = event.data.payment_transaction_id | ||
? | ||
`&transactionId=${event.data.payment_transaction_id}` | ||
: | ||
''; | ||
? `&transactionId=${event.data.payment_transaction_id}` | ||
: ''; | ||
const parameters = `${attemptId}${instrumentId}${transactionId}`; | ||
@@ -113,3 +120,3 @@ if (this.successUrl) { | ||
src="${this.gatewayBaseurl}/checkout/${this.attemptId}?origin=${window.location | ||
.origin}&options=${JSON.stringify(this.options)}" | ||
.origin}&merchantId=${this.merchantId}&authentication=${this.authentication}&countryOrRegion=${this.countryOrRegion}¤cy=${this.currency}theme=${JSON.stringify(this.theme)}" | ||
title="Secure airwallex payment frame" | ||
@@ -116,0 +123,0 @@ /> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2846556
3099