commit 3a9206832d875d75014e6ca9ebd402bb49e89291 parent db4ee624c0b09277b90abcf9c5cf945fc6978d70 Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Tue, 13 Mar 2018 13:07:48 +0100 php check-payment. Diffstat:
| M | doc/merchant-api.content.texi | | | 16 | ++++++++++++++++ |
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git 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)