Comments (5)
Hi,
That behavior is usually due to your domain not being registered on the Apple Pay Developer portal.
Could you share your merchant ID configuration page to make sure it's registered properly?
An example .env
file would be:
MERCHANT_ID=merchant.com.test.merchantid
MERCHANT_NAME=Apple Pay Test
MERCHANT_DOMAIN=lab.tridnguyen.com
AUTHORIZED_ORIGINS=lab.tridnguyen.com
from web-payments-example.
Hi, I am trying to run your sample on MacOS 10.12.3 with node js v6.10.0 but failed. I have already create .env under web-payments-example dir and run cmd "npm start" there. Any hints to solve the problem? Sorry for my stupid question, I am very new to node js.
SD5-MacBook-Pro:web-payments-example gykho$ npm start
[email protected] start /Users/gykho/Documents/web-payments-example
forever start server/index.js && forever logs -f 0
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: server/index.js
data: server/index.js:25394 - { Error: ENOENT: no such file or directory, open '.env'
data: server/index.js:25394 - at Error (native)
data: server/index.js:25394 - at Object.fs.openSync (fs.js:640:18)
data: server/index.js:25394 - at Object.fs.readFileSync (fs.js:508:33)
data: server/index.js:25394 - at Object.config (/Users/gykho/Documents/web-payments-example/node_modules/dotenv/lib/main.js:30:37)
data: server/index.js:25394 - at Object.config (/Users/gykho/Documents/web-payments-example/node_modules/dotenv-safe/index.js:25:16)
from web-payments-example.
Apologies for the late reply. Been a busy month for me changing job.
Could you show the results of ls -al
? Weird that it's complaining about .env
not exist when you said you created it.
from web-payments-example.
from web-payments-example.
Got same issue .env file is there but log's saying file doesn't exist
@marimogit please can u share the github project?
from web-payments-example.
Related Issues (10)
- Payment sheet closes with "payment not completed" message HOT 1
- forever start server/index.js && forever logs -f 0 HOT 1
- Apple Pay buttons should not be rendered unless supported HOT 1
- ApplePay Sandbox test account HOT 3
- Action required: Greenkeeper could not be activated 🚨
- Update Android pay identifier
- Payments possibilities HOT 1
- What is PSP_USERNAME
- Demo returns 404
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-payments-example.