Comparing version 1.0.0 to 1.0.1
10
index.js
@@ -20,8 +20,8 @@ const PAYMENT_PAGE = 'https://master.d3jzulvhjxqnlp.amplifyapp.com/pay'; | ||
amount = Number(amount); | ||
Connect.amount = amount; | ||
Connect.currency = currency; | ||
Xecond.amount = amount; | ||
Xecond.currency = currency; | ||
} | ||
static redirectToPaymentPage() { | ||
window.location.href = `${PAYMENT_PAGE}/?key=${Connect.publicKey}&amount=${Connect.amount}¤cy=${Connect.currency}`; | ||
window.location.href = `${PAYMENT_PAGE}/?key=${Xecond.publicKey}&amount=${Xecond.amount}¤cy=${Xecond.currency}`; | ||
} | ||
@@ -31,5 +31,5 @@ } | ||
window.addEventListener('DOMContentLoaded', () => { | ||
document.getElementsByClassName('connect-pay')[0].addEventListener('click', () => { | ||
Connect.redirectToPaymentPage(); | ||
document.getElementsByClassName('xecond-pay')[0].addEventListener('click', () => { | ||
Xecond.redirectToPaymentPage(); | ||
}); | ||
}); |
{ | ||
"name": "xecond.js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "CDN for integration to connect Xecond Payment Gateway.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1350