Skip to content

Commit

Permalink
Move account credentials to Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
scannillo committed Mar 3, 2020
1 parent bb4c741 commit 2d4f718
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ To change the merchant account used on this server, update the credentials in `a

After making this change, execute both the build and run steps in the *Build and run locally* section above.

## Deploying

The app is currently deployed to Heroku at this url: https://ppcp-sample-merchant-sand.herokuapp.com.

To deploy to sandbox, first add a git remote called sandbox:

`git remote add sandbox https://git.heroku.com/ppcp-sample-merchant-sand.git`

Pushing your changes to this remote will automatically deploy them:

`git push sandbox master`

## Troubleshooting

### PayPal v2/orders Request Limitations
Expand Down
10 changes: 10 additions & 0 deletions src/main/resources/application-production.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server.port=${PORT:5000}
spring.profiles.active=production
logging.level.org.springframework=INFO

url=https://api.paypal.com

us.client.id=${US_CLIENT_ID}
us.client.secret=${US_CLIENT_SECRET}
uk.client.id=${UK_CLIENT_ID}
uk.client.secret=${UK_CLIENT_SECRET}
8 changes: 4 additions & 4 deletions src/main/resources/application-sandbox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ logging.level.org.springframework=INFO

url=https://api.sandbox.paypal.com

us.client.id=AdFeO5qt2rodLjSgxSj66sjlBylwpacFtov1VgnptN_VclH1ZNhIcgS1px02mNIOUSEO54B-5drJ7F85
us.client.secret=EPlHO6SzNhuwYMu02SZDyL1mws7XE4hZFkqqks2YAV-Fn8xHy51WJMtryTP5QKlJPasL2c1v4sdd6LmD
uk.client.id=todo
uk.client.secret=todo
us.client.id=${US_CLIENT_ID}
us.client.secret=${US_CLIENT_SECRET}
uk.client.id=${UK_CLIENT_ID}
uk.client.secret=${UK_CLIENT_SECRET}

0 comments on commit 2d4f718

Please sign in to comment.