Skip to content

Commit

Permalink
Update readme with responses
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidycodes committed Oct 18, 2019
1 parent c119c1c commit 19d302e
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,54 @@ client.profile.create(
'language': 'en',
'comments': 'hello',
'card':{
'name': 'Jane Fonda',
'number": '4030000Smith010001234',
'name': 'Hup Podling',
'number': '4030000Smith010001234',
'expiry_month': '12',
'expiry_year': '23',
'cvd': '123',
},
},
)
# => {
# code: 1,
# message: 'Hup...want...buy.',
# customer_code: 'aaa111",
# validation: {
# id: '',
# approved: 1,
# message_id: 1,
# message: '',
# auth_code: '',
# trans_date: '',
# order_number: '',
# type: '',
# amount: 0,
# cvd_id: 123,
# },
# }
```

## Delete a Profile

```ruby
client.profile.delete(1234)
# => {
# code: 1,
# message: 'Hup...want...buy.',
# customer_code: 'aaa111",
# validation: {
# id: '',
# approved: 1,
# message_id: 1,
# message: '',
# auth_code: '',
# trans_date: '',
# order_number: '',
# type: '',
# amount: 0,
# cvd_id: 123,
# },
# }
```

## Development
Expand Down

0 comments on commit 19d302e

Please sign in to comment.