Apple Pay - php
Ngân sách $10-30 USD
I have followed the steps of [login to view URL] to use ApplePay, but i only get the spinner, it never continues. I would like to have someone to guide me through it. I have used this as a test, that did not work.
const session = new ApplePaySession(1, {
countryCode: 'DK',
currencyCode: 'EUR',
supportedNetworks: ['visa', 'masterCard'],
merchantCapabilities: ['supports3DS'],
lineItems: [
{
type: 'final',
label: '2x orange juice',
amount: 2.99,
},
],
total: {label: shopName, amount: 2.99},
requiredShippingContactFields: ['name', 'email', 'postalAddress'],
})
[login to view URL] = e =>
fetch('[login to view URL]', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Accept-Version': '1',
},
body: [login to view URL]({
configurationId,
text: shopName,
validationURL: [login to view URL],
}),
})
.then(r => [login to view URL]())
.then(r => {
return [login to view URL]([login to view URL])
})
[login to view URL] = e =>
fetch('[login to view URL]', {
method: 'POST',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json',
},
body: [login to view URL]({
key: merchantPublicKey,
// custom: ..., // if relevant
apple: [login to view URL]([login to view URL]),
}),
})
.then(r => [login to view URL]())
.then(
r => {
[login to view URL](ApplePaySession.STATUS_SUCCESS)
[login to view URL](r)
},
err => {
[login to view URL](ApplePaySession.STATUS_FAILURE)
[login to view URL](err)
}
)
[login to view URL]()
1 freelancer đang chào giá trung bình $30 cho công việc này
Hello, we are team of well structured IT geeks. We have delivered various CMS based projects in past 8+ Years and our customers are always satisfied with our job. We are well aware about technologies as you mentioned - Thêm