Skip to content

Commit

Permalink
Added demonstration of ssl verification
Browse files Browse the repository at this point in the history
  • Loading branch information
dimafe6 authored Aug 29, 2018
1 parent a8e3756 commit dcb179f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ $bankIDService = new BankIDService(
]
);

// OR Create BankIDService with ssl verification
$bankIDService = new BankIDService(
'https://appapi2.test.bankid.com/rp/v5/',
$_SERVER["REMOTE_ADDR"],
[
'verify' => 'PATH_TO_TEST_CERT.ca',
'cert' => 'PATH_TO_TEST_CERT.crt',
'ssl_key' => 'PATH_TO_TEST_CERT.key',
]
);

// Signing. Step 1 - Get orderRef
/** @var OrderResponse $response */
$response = $bankIDService->getSignResponse('PERSONAL_NUMBER', 'User visible data');
Expand Down

0 comments on commit dcb179f

Please sign in to comment.