summaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-11-30 15:56:27 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-11-30 15:56:27 +0100
commit2afd00738ba240999625efc8126dc595d0eaf2b4 (patch)
treeaf7df4be42638dc684f701a1788f3c6cf4dcdb82 /php
parentabc5569c6141e7c68099d42c0dc829ce6732f285 (diff)
downloadmerchant-frontend-examples-2afd00738ba240999625efc8126dc595d0eaf2b4.tar.gz
merchant-frontend-examples-2afd00738ba240999625efc8126dc595d0eaf2b4.tar.bz2
merchant-frontend-examples-2afd00738ba240999625efc8126dc595d0eaf2b4.zip
Earlier refund_deadline
Diffstat (limited to 'php')
-rw-r--r--php/contract.php4
-rw-r--r--php/track-transaction.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/php/contract.php b/php/contract.php
index 49760d8..9eccdc8 100644
--- a/php/contract.php
+++ b/php/contract.php
@@ -44,10 +44,10 @@
. $now->getTimestamp()),
'repurchase_correlation_id' =>
'',
+ 'refund_deadline' =>
+ "/Date(" . $now->getTimestamp() . ")/",
'pay_deadline' =>
"/Date(" . $now->add(new DateInterval('P2W'))->getTimestamp() . ")/",
- 'refund_deadline' =>
- "/Date(" . $now->add(new DateInterval('P3M'))->getTimestamp() . ")/",
'merchant' =>
array('address' =>
'LNAME2',
diff --git a/php/track-transaction.php b/php/track-transaction.php
index d65842c..8fd1058 100644
--- a/php/track-transaction.php
+++ b/php/track-transaction.php
@@ -26,7 +26,7 @@
$decoded = json_decode($response["body"]);
if (202 == $response["status_code"]){
$pretty_date = get_pretty_date($decoded->details->execution_time);
- echo "<p>The exchange accepted the transactioin.
+ echo "<p>The exchange accepted the transaction.
The estimated time for when the related wire transfer
is to be performed is: $pretty_date</p>";
return;