Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiodionisi committed Jan 17, 2019
1 parent 37791bc commit 94eb864
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ require_once("/path/init.php");
## Documentation
https://s3-eu-west-1.amazonaws.com/docs.online.satispay.com/index.html

## Authentication
Sign in to your [Dashboard](https://business.satispay.com) at [business.satispay.com](https://business.satispay.com), click "Negozi Online" in the menu on the left, and then click on "Genera un token di attivazione" to generate an activation token.
## Authenticate with Bearer
Sign in to your [Dashboard](https://business.satispay.com) at [business.satispay.com](https://business.satispay.com), click "Negozi Online", click on "Crea codice di attivazione" and select "Security bearer" on top menu.

```php
\SatispayOnline\Api::setSecurityBearer("osh_...");
```

## Authenticate with RSA Signature
Sign in to your [Dashboard](https://business.satispay.com) at [business.satispay.com](https://business.satispay.com), click "Negozi Online", and then click on "Genera un token di attivazione" to generate an activation token.

Use the activation token with the `authenticateWithToken` function to generate and exchange a pair of RSA keys.

Expand Down Expand Up @@ -51,7 +58,7 @@ $keyId = "ldg9sbq283og7ua1abpj989kbbm2g60us6f18c1sciq...";
```

## Enable Sandbox
To enable sandbox use `setSandbox` with value `true`.
To enable sandbox use `setSandbox` function.
```php
\SatispayOnline\Api::setSandbox(true);
```

0 comments on commit 94eb864

Please sign in to comment.