Skip to content

quintonwall/ms-creditcard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ms-creditcard

Microservice for credit card related processing.

##Installation

Deploy

##Usage

Simply POST a JSON payload to host:post/validatecreditcard.

In addition, the repo contains a testpost.sh which uses CURL to test via the command line.

###Sample JSON request payload

The following sample payload can be used, with a full list of test credit cards available at http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm

{ "cardType": "VISA", "number": "4111111111111111", "expiryMonth": "03", "expiryYear": "2100", "cvv": "123" }

###Sample response {"card":{"cardType":"VISA","number":"4111111111111111","expiryMonth":"03","expiryYear":"2100"},"validCardNumber":true,"validExpiryMonth":true,"validExpiryYear":true,"validCvv":false,"isExpired":false}

About

Microservice for credit card related processing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published