payment_api
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
payment_api [2019/03/17 20:26] – mibase | payment_api [2019/03/18 17:27] (current) – mibase | ||
---|---|---|---|
Line 11: | Line 11: | ||
Australia/ | Australia/ | ||
+ | |||
Australia/ | Australia/ | ||
+ | |||
Australia/ | Australia/ | ||
+ | |||
Australia/ | Australia/ | ||
+ | |||
Pacific/ | Pacific/ | ||
+ | |||
+ | |||
Cut and paste your key from settings into notepad for testing | Cut and paste your key from settings into notepad for testing | ||
Line 45: | Line 51: | ||
In the page on your website that returns a successful payment insert the following php code. Assign the values that are returned from the payment process. | In the page on your website that returns a successful payment insert the following php code. Assign the values that are returned from the payment process. | ||
- | <?php | + | The PHP code to add |
- | + | ||
- | + | ||
- | $inputData = array(); | + | |
- | + | ||
- | + | ||
- | + | ||
- | $inputData[' | + | |
- | $inputData[' | + | |
- | $inputData[' | + | |
- | $inputData[' | + | |
- | $inputData[' | + | |
- | + | ||
- | + | ||
- | + | ||
- | $postdata = http_build_query($inputData); | + | |
- | + | ||
- | $context_options = array(' | + | |
- | array( | + | |
- | ' | + | |
- | ' | + | |
- | " | + | |
- | ' | + | |
- | ) | + | |
- | ); | + | |
- | + | ||
- | $context = stream_context_create($context_options); | + | |
- | + | ||
- | $result = file_get_contents(' | + | |
- | + | ||
- | echo $result; | + | |
+ | {{: | ||
- | |||
payment_api.1552814789.txt.gz · Last modified: 2019/03/17 20:26 by mibase