summaryrefslogtreecommitdiff
path: root/doc/merchant-api.content.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/merchant-api.content.texi')
-rw-r--r--doc/merchant-api.content.texi16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/merchant-api.content.texi b/doc/merchant-api.content.texi
index b491fa2d..6f523420 100644
--- a/doc/merchant-api.content.texi
+++ b/doc/merchant-api.content.texi
@@ -394,6 +394,22 @@ curl -i "https://backend.demo.taler.net/check-payment?order_id=$ORDER_ID" \
@end verbatim
@end example
@end ifset
+@ifset LANG_PHP
+@set GOT_LANG 1
+@example
+@verbatim
+$ORDER_ID = "2018.072.12.48.51-014DKDKBMHPDP";
+php > curl_init ("https://backend.demo.taler.net/check-payment?order_id=$ORDER_ID");
+php > $options = array(CURLOPT_RETURNTRANSFER=>true,
+php ( CURLOPT_CUSTOMREQUEST=>"GET",
+php ( CURLOPT_HTTPHEADER=>array(
+php ( "Authorization: ApiKey sandbox"));
+php > curl_setopt_array($c, $options);
+php > $r = curl_exec($c);
+php > echo $r;
+@end verbatim
+@end example
+@end ifset
@ifclear GOT_LANG
@example
(example not available for this language)