Skip to content

Commit 014152f

Browse files
authored
Merge pull request #12 from marcinx/master
README updates
2 parents ebf31c8 + b68bdd6 commit 014152f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ Upon visiting the URL, your customer is presented with a checkout page hosted on
6363
```ruby
6464
response = client.post('/checkout/hosted', {
6565
:charge => {
66-
:customerId => customer_id, # associates this charge with a customer
67-
:billingCurrency => 'USD', # specifies the billing currency
66+
:customerId => customer_id, # associates this charge with a customer as crated by POST /customer
67+
:billingCurrency => 'USD', # a billing currency as given by GET /currencies
6868
:lineItems => [{ # a list of line items included in this charge
6969
:description => 'T-Shirt',
7070
:netAmount => 10, # denominated in the currency specified above
@@ -84,7 +84,7 @@ response = client.post('/checkout/hosted', {
8484
:percent => 0.0825 # 8.25% CA sales tax
8585
}]
8686
},
87-
:settlementAsset => 'USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN' # specifies the asset you want to be credited in when the checkout completes
87+
:settlementAsset => 'USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN' # your settlement asset as given by GET /assets (or ORIGIN to omit conversion)
8888
})
8989
print "Status Code: " + response.code.to_s + "\n"
9090
print "Response Body: " + response.body + "\n"
@@ -122,7 +122,7 @@ response = client.get('/wallets')
122122
response = client.post('/withdrawal', {
123123
:sourceAsset => 'USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN', #withdraw from your USDC wallet
124124
:sourceAmount => '100',
125-
:targetNetwork => 'BITCOIN', # send to a Bitcoin address
125+
:targetNetwork => 'BITCOIN', # a target network as given by GET /networks
126126
:targetAccount => {
127127
:address => 'bc1qj633nx575jm28smgcp3mx6n3gh0zg6ndr0ew23'
128128
}
@@ -134,7 +134,7 @@ response = client.post('/withdrawal', {
134134
response = client.post('/withdrawal', {
135135
:sourceAsset => 'USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN', #withdraw from your USDC wallet
136136
:sourceAmount => '100',
137-
:targetNetwork => 'STELLAR', # send to a Stellar account
137+
:targetNetwork => 'STELLAR', # a target network as given by GET /networks
138138
:targetAccount => {
139139
:account => 'GDONUHZKLSYLDOZWR2TDW25GFXOBWCCKTPK34DLUVSOMFHLGURX6FNU6',
140140
:memo => 'Exodus',

0 commit comments

Comments
 (0)