ApplePay using Judopay - Eonic/ProteanCMS GitHub Wiki
Puropose
We gave a facility to user to process order paymnet with Applepay. It will work on mac devices and espcially iphone only where Applepay is installed.
We are storing all destails as normal order with card payment we did.
Before making Applepay enabled we need registered domain with Judopay. We need to add the file in downloaded format in /.well-known folder in root folder of web application.
Get the file and store in given location ( /.well-known ) https://docs.judopay.com/Content/Web%20SDK/Web%20SDK.htm#Domain
Div tag on form to add applepay button
Ask Judopay to enable it and then add below code to enable applepay in judopay.xsl in javascript
//code for applepay
function handleApplePayButtonClick() {
var configuration = {
amount: '<xsl:value-of select="model/instance/PaymentAmount"/>',
currency: '<xsl:value-of select="model/instance/currency"/>',
yourConsumerReference: '<xsl:value-of select="model/instance/yourConsumerReference"/>',
yourPaymentReference: '<xsl:value-of select="model/instance/yourPaymentReference"/>',
judoId: '<xsl:value-of select="model/instance/judoId"/>'
}
judo.digitalWallets
.invokePaymentWithApplePay('<xsl:value-of select="model/instance/payment-session"/>', configuration)
.then(handleSuccess)
.catch(handleError)
}
var button = judo.digitalWallets.getApplePayButton({
height: 38,
width: 240,
language: 'EN',
style: 'black',
type: 'buy'});
button.onclick = handleApplePayButtonClick;
document.getElementById('apple-pay-button-container').appendChild(button);
This is you can check on link to further check. https://docs.judopay.com/Content/Web%20SDK/Web%20SDK.htm#ApplePayForWeb
And you will able to process order through it.