A very small server written in Go that demonstrates the Assembly Payments Drop-In UI for secure credit card acquisition.
For more detailed information about Assembly Payments APIs, development guides and more, please see https://developer.assemblypayments.com/docs.
Copyright 2020 Assembly Payments
The software in this repository is available as open source under the terms of the Apache License.
- Install Go.
- Clone this repo. CD into the
dropin-ui-demo
directory and entergo build server.go
. - If you are new to Go, you could check out this and this and this.
Please note that knowledge of Go is not required to run this demo.
- You will need credentials to authorize the server to interact with the Prelive environment. If you haven't already, sign up here.
- Add a file named
secret
to the repo directory. Write your prelive compound key ([username]:[API token]
) to this file. Get these values from the account page of the prelive dashboard. Don't use your production credentials with this demo. - CD into the
dropin-ui-demo
directory and enter./server
. - Open a web browser to http://localhost:8081/dropin.html.
- Use the card number
4111 1111 1111 1111
.
- docker-compose build
- Add creds (as per 2 above) to
secret
- docker-compose up
- Open a web browser to http://localhost:8081/dropin.html.