This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,11 +60,30 @@ async function main() { | |
|
||
main(); | ||
``` | ||
|
||
(You can copy-paste this snippet into the Dev console of your browser to try it out. It requires Chrome 55+. | ||
|
||
#### PHP | ||
[Code example required](https://github.com/WISVCH/payments/issues/6) | ||
#### PHP (you filthy sjaarsCH) | ||
```php | ||
$url = 'http://localhost:9000/api/orders'; | ||
$data = [ | ||
'name': "Thomas Ticket", | ||
'email': "[email protected]", | ||
'returnUrl': "<return-url>", | ||
'productKeys': ["<product-key>", "<product-key>"] | ||
]; | ||
|
||
$options = [ | ||
'http' => [ | ||
'header' => [ | ||
"Content-Type:application/json" | ||
], | ||
'method' => "POST", | ||
'content' => json_encode($data) | ||
] | ||
]; | ||
|
||
$response = json_decode(file_get_contents($url, false, stream_context_create($options))); | ||
``` | ||
|
||
# HootHub | ||
This project currently is quite minimal, and offers lots of opportunities for great features built by you! | ||
|