README.md in bayonet_client-2.1.2 vs README.md in bayonet_client-2.2.0

- old
+ new

@@ -46,14 +46,14 @@ * [Lending](#lending) ### Ecommerce -* Consulting API +* Consult API ```ruby - BayonetClient::Ecommerce.consulting({ + BayonetClient::Ecommerce.consult({ channel: 'ecommerce', email: 'example@bayonet.io', consumer_name: 'Example name', consumer_internal_id: '<your internal ID for this consumer>', cardholder_name: 'Example name', @@ -76,11 +76,11 @@ state: 'Mexico DF', country: 'MEX', zip_code: '64000' }, payment_method: 'card', - transaction_time: 1476012879, + transaction_id: '<your internal ID for this transaction>' payment_gateway: 'stripe', coupon: 'discount_buen_fin', expedited_shipping: true, products: [ { @@ -97,16 +97,15 @@ } ], bayonet_fingerprint_token: '<token generated by Bayonet fingerprinting JS' }) ``` -* Feedback API +* Update Transaction API ```ruby - BayonetClient::Ecommerce.feedback({ - feedback_api_trans_code: '<code returned by the previous consulting response>' + BayonetClient::Ecommerce.update-transaction({ + transaction_id: '<your internal ID for this transaction (as sent in the consult step)>', transaction_status: 'success', - transaction_id: '<your internal ID for this transaction>', ... }) ``` * Feedback-historical API