Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Commit

Permalink
Update create payment sample
Browse files Browse the repository at this point in the history
  • Loading branch information
siddick committed Aug 12, 2013
1 parent 0de01bc commit f288d5a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions samples/payment/create_with_paypal.js
Expand Up @@ -9,10 +9,19 @@ var create_payment_json = {
"payment_method": "paypal"
},
"redirect_urls": {
"return_url": "http:\/\/localhost\/test\/rest\/rest-api-sdk-php\/sample\/payments\/ExecutePayment.php?success=true",
"cancel_url": "http:\/\/localhost\/test\/rest\/rest-api-sdk-php\/sample\/payments\/ExecutePayment.php?success=false"
"return_url": "http://return.url",
"cancel_url": "http://cancel.url"
},
"transactions": [{
"item_list": {
"items": [{
"name": "item",
"sku": "item",
"price": "1.00",
"currency": "USD",
"quantity": 1
}]
},
"amount": {
"currency": "USD",
"total": "1.00"
Expand Down

0 comments on commit f288d5a

Please sign in to comment.