From 3a9206832d875d75014e6ca9ebd402bb49e89291 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 13 Mar 2018 13:07:48 +0100 Subject: php check-payment. --- doc/merchant-api.content.texi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc') 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) -- cgit v1.2.3