Skip to content

Commit

Permalink
updated examples init data for eAPI 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarcz committed Jun 22, 2022
1 parent 3364c81 commit c017913
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@
"orderNo":"554822",
"payOperation":"payment",
"payMethod":"card",
"totalAmount":178500,
"totalAmount":123400,
"currency":"CZK",
"closePayment": true,
"returnUrl":"https://store.example.com/return",
"returnMethod":"POST",
"cart":[
{
"name": "žluťoučký kůň",
"name": "Wireless headphones",
"quantity": 1,
"amount": 178500
"amount": 123400
},
{
"name": "Poštovné",
"name": "Shipping",
"quantity": 1,
"amount": 0
"amount": 0,
"description": "DPL"
}
],
"merchantData":"c29tZS1iYXNlNjQtZW5jb2RlZC1tZXJjaGFudC1kYXRh",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"origPayId":"5cdca11ab57d@GL",
"orderNo":"55482445",
"clientIp":"1.2.3.4",
"totalAmount":178500,
"totalAmount":17800,
"currency":"CZK"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@
"orderNo":"554822",
"payOperation":"payment",
"payMethod":"card",
"totalAmount":1500,
"totalAmount":123400,
"currency":"CZK",
"closePayment": true,
"returnUrl":"https://store.example.com/return",
"returnMethod":"POST",
"cart":[
{
"name": "žluťoučký kůň",
"name": "Wireless headphones",
"quantity": 1,
"amount": 1500,
"description":"Lenovo ThinkPad Edge E540"
"amount": 123400
},
{
"name": "Poštovné",
"name": "Shipping",
"quantity": 1,
"amount": 0,
"description": "Doprava PPL"
"description": "DPL"
}
],
"merchantData":"c29tZS1iYXNlNjQtZW5jb2RlZC1tZXJjaGFudC1kYXRh",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@
"orderNo":"554822",
"payOperation":"customPayment",
"payMethod":"card",
"totalAmount":1500,
"totalAmount":123400,
"currency":"CZK",
"closePayment": true,
"returnUrl":"https://store.example.com/return",
"returnMethod":"POST",
"cart":[
{
"name": "žluťoučký kůň",
"name": "Wireless headphones",
"quantity": 1,
"amount": 1500,
"description":"Lenovo ThinkPad Edge E540"
"amount": 123400
},
{
"name": "Poštovné",
"name": "Shipping",
"quantity": 1,
"amount": 0,
"description": "Doprava PPL"
"description": "DPL"
}
],
"merchantData":"c29tZS1iYXNlNjQtZW5jb2RlZC1tZXJjaGFudC1kYXRh",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@
"orderNo":"554822",
"payOperation":"oneclickPayment",
"payMethod":"card",
"totalAmount":1500,
"totalAmount":123400,
"currency":"CZK",
"closePayment": true,
"returnUrl":"https://store.example.com/return",
"returnMethod":"POST",
"cart":[
{
"name": "žluťoučký kůň",
"name": "Wireless headphones",
"quantity": 1,
"amount": 1500,
"description":"Lenovo ThinkPad Edge E540"
"amount": 123400
},
{
"name": "Poštovné",
"name": "Shipping",
"quantity": 1,
"amount": 0,
"description": "Doprava PPL"
"description": "DPL"
}
],
"merchantData":"c29tZS1iYXNlNjQtZW5jb2RlZC1tZXJjaGFudC1kYXRh",
Expand Down
11 changes: 5 additions & 6 deletions examples/eAPI v1.8/php/index-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,22 @@
"orderNo":"554822",
"payOperation":"payment",
"payMethod":"card",
"totalAmount":1789600,
"totalAmount":123400,
"currency":"CZK",
"closePayment": true,
"returnUrl":"https://store.example.com/return",
"returnMethod":"POST",
"cart":[
{
"name": "žluťoučký kůň",
"name": "Wireless headphones",
"quantity": 1,
"amount": 1789600,
"description":"Lenovo ThinkPad Edge E540"
"amount": 123400
},
{
"name": "Poštovné",
"name": "Shipping",
"quantity": 1,
"amount": 0,
"description": "Doprava PPL"
"description": "DPL"
}
],
"merchantData":"c29tZS1iYXNlNjQtZW5jb2RlZC1tZXJjaGFudC1kYXRh",
Expand Down
2 changes: 1 addition & 1 deletion examples/eAPI v1.8/php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<div class="form-group">
<label for="goods_desc" class="col-sm-2 control-label">Goods description</label>
<div class="col-sm-4">
<input class="form-control text-right" name="goods_desc" id="goods_desc" value="Lenovo ThinkPad Edge E540"/>
<input class="form-control text-right" name="goods_desc" id="goods_desc" value=""/>
</div>
</div>
<div class="form-group">
Expand Down
4 changes: 2 additions & 2 deletions examples/eAPI v1.8/php/struct.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

class Constants {

static $SHOP_CART_NAME = 'Shopping at ...';
static $SHOP_CART_NAME = 'Wireless headphones';
static $SHOP_CART_QUANTITY = 1;
static $SHOP_SHIPPING = 'Shipping';
static $SHOP_SHIPPING_DESC = 'PPL';
static $SHOP_SHIPPING_DESC = 'DPL';
static $LANGUAGE = [
'cs' => 'česky',
'sk' => 'slovensky',
Expand Down

0 comments on commit c017913

Please sign in to comment.