Skip to content

Commit

Permalink
Merge pull request #20 from apoca/develop
Browse files Browse the repository at this point in the history
Merge Develop into master
  • Loading branch information
apoca authored Apr 2, 2019
2 parents fa8a923 + 747aa4e commit 6e92a70
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,50 @@ $response = Sibs::checkout($request)->pay();
}
```

2. Create the payment form

- The checkout's id that you got in the response from step 1

```HTML
<script src="https://test.oppwa.com/v1/paymentWidgets.js?checkoutId={response->id}"></script>
```

- The shopperResultUrl, which is the page on your site where the customer should be redirected to after the payment is processed and the brands that will be available.

```HTML
<form action="{shopperResultUrl}" class="paymentWidgets" data-brands="VISA MASTER AMEX"></form>
```

3. Get the payment status (see step 1)

```
$response = Sibs::status($response->response->id);
```

```JSON
{
"status": 400,
"response": {
"result":{
"code":"200.300.404",
"description":"invalid or missing parameter",
"parameterErrors": [
{
"name": "entityId",
"value": "8a8294185332bbe601533754724914d9",
"message": "is not an allowed parameter"
}
]
},
"buildNumber":"",
"timestamp":"2019-03-29 11:27:15+0000",
"ndc":"89C42801E79302B0E75520C4A793121D.uat01-vm-tx03"
}
}
```

NOTE: You'll receive and error code 400, because you need an entity key approved by [sibs](https://www.sibs-international.com/).

### Server-to-Server

Sending the request parameters server-to-server and receive the payment response synchronously.
Expand Down

0 comments on commit 6e92a70

Please sign in to comment.