Skip to content

Commit

Permalink
Example and datatype description
Browse files Browse the repository at this point in the history
  • Loading branch information
toopay committed Sep 29, 2015
1 parent 9d22dd0 commit 9588ce7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ CustomerDetails = #customer_details{
phone = <<"+628888888">>,
billing_address = BillingAddress
},
charge_credit_card(<<"s0me-t0k3n">>,<<"mandiri">>,<<"order-9999">>, 10000, [ItemDetail], CustomerDetails).

case charge_credit_card(<<"s0me-t0k3n">>,<<"mandiri">>,<<"order-9999">>, 10000, [ItemDetail], CustomerDetails) of
{ok, Data} -> io:format("Success! Response : ~p~n",[Data]);
{error, Reason} -> io:format("Something goes wrong. Reason : ~p~n", [Reason])
end.

```
See API Reference for complete vendor methods.

Expand Down

0 comments on commit 9588ce7

Please sign in to comment.