PHP code example of dimafe6 / bank-id-bundle

1. Go to this page and download the library: Download dimafe6/bank-id-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dimafe6 / bank-id-bundle example snippets


// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    // ...

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Dimafe6\BankIDBundle\BankIDBundle(),
        );

        // ...
    }
}

    // ...
    $orderRef = $container->get('dimafe6.bankid')->getAuthResponse($personalNumber)->orderRef;
    // ...    
    $response = $container->get('dimafe6.bankid')->collectResponse($orderRef);
    // ...