Code Monkey home page Code Monkey logo

Comments (5)

tnguyen14 avatar tnguyen14 commented on August 23, 2024

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.

marimogit avatar marimogit commented on August 23, 2024

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.

tnguyen14 avatar tnguyen14 commented on August 23, 2024

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.

marimogit avatar marimogit commented on August 23, 2024

from web-payments-example.

nelsieborja avatar nelsieborja commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.