Skip to content

Commit

Permalink
Add order_id and bayonet_tracking_id to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
imran-arshad authored Mar 12, 2018
1 parent 3e45ad2 commit 2f25767
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ Once you have Bayonet's SDK configured, you can call the APIs with the following
zip_code: '64000'
},
payment_method: 'card',
transaction_id: '<your internal ID for this transaction>'
order_id: '<your internal ID for this order (mandatory)>',
transaction_id: '<your internal ID for this transaction (optional)>',
payment_gateway: 'stripe',
coupon: 'discount_buen_fin',
expedited_shipping: true,
Expand All @@ -103,10 +104,13 @@ Once you have Bayonet's SDK configured, you can call the APIs with the following
```ruby
BayonetClient::Ecommerce.update-transaction({
order_id: '<your internal ID for this order (as sent in the consult step)>',
transaction_id: '<your internal ID for this transaction (as sent in the consult step)>',
bayonet_tracking_id: '<tracking ID returned by the API in the consult step>',
transaction_status: 'success',
...
})
# please note that you can use either one of 'order_id', 'transaction_id', or 'bayonet_tracking_id' to update the status of a transaction
```
* Feedback-historical API
Expand Down

0 comments on commit 2f25767

Please sign in to comment.