Skip to content

Commit

Permalink
Update SIM.markdown
Browse files Browse the repository at this point in the history
Add PHP flag for syntax highlighting
  • Loading branch information
adear11 committed Jul 16, 2014
1 parent b834aa8 commit 757f2ef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doc/SIM.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ reference.

The code below will generate a buy now button that leads to a hosted order page:

```
```PHP
<form method="post" action="https://test.authorize.net/gateway/transact.dll">
<?php
$amount = "9.99";
Expand Down Expand Up @@ -46,8 +46,9 @@ Fingerprint Generation

To generate the fingerprint needed for a SIM transaction call the getFingerprint method:

$fingerprint = AuthorizeNetSIM_Form::getFingerprint($api_login_id, $transaction_key, $amount, $fp_sequence, $fp_timestamp);

```PHP
$fingerprint = AuthorizeNetSIM_Form::getFingerprint($api_login_id, $transaction_key, $amount, $fp_sequence, $fp_timestamp);
```

Relay Response
--------------
Expand All @@ -65,7 +66,7 @@ http://yourdomain.com/response_handler.php and execute any logic you want
when a transaction occurs. The AuthorizeNetSIM class makes it easy to verify
the transaction came from Authorize.Net and parse the response:

```
```PHP
$response = new AuthorizeNetSIM;
if ($response->isAuthorizeNet())
{
Expand Down

0 comments on commit 757f2ef

Please sign in to comment.