diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-03-13 13:07:48 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-03-13 13:07:48 +0100 |
commit | 3a9206832d875d75014e6ca9ebd402bb49e89291 (patch) | |
tree | 5ff58dd7fd61c58cb7b49d4fe86ef1505c5b6abd /doc | |
parent | db4ee624c0b09277b90abcf9c5cf945fc6978d70 (diff) | |
download | merchant-3a9206832d875d75014e6ca9ebd402bb49e89291.tar.gz merchant-3a9206832d875d75014e6ca9ebd402bb49e89291.tar.bz2 merchant-3a9206832d875d75014e6ca9ebd402bb49e89291.zip |
php check-payment.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/merchant-api.content.texi | 16 |
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) |