Skip to content

Instantly share code, notes, and snippets.

@mjallday
Created November 1, 2012 21:25
Show Gist options
  • Select an option

  • Save mjallday/3996688 to your computer and use it in GitHub Desktop.

Select an option

Save mjallday/3996688 to your computer and use it in GitHub Desktop.
Balanced Card Rejection

Example of a card that will not tokenize

curl -X POST https://api.balancedpayments.com/v1/marketplaces/TEST-MP6IEymJ6ynwnSoqJQnUTacN/cards \
  -u 7b7a51ccb10c11e19c0a026ba7e239a9: \
  -d card_number="4222222222222220" \
  -d expiration_month="12" \
  -d expiration_year="2020" \
  -d security_code="123"

Response

{
  "status": "Payment Required", 
  "category_code": "card-declined", 
  "additional": "Generic decline - No other information is being provided by the issuer.", 
  "status_code": 402, 
  "category_type": "banking", 
  "extras": {}, 
  "request_id": "OHM02088774246a11e2a2b7026ba7cac9da", 
  "description": "R530: Do Not Honor. Your request id is OHM02088774246a11e2a2b7026ba7cac9da."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment