achertovsky/yii2-bluesnap

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.

Makes bluesnap for yii2 much easier

dev-master 2021-12-18 12:33 UTC

This package is auto-updated.

Last update: 2022-06-18 13:33:36 UTC


README

Greetings, stranger.

Module designed for those who want use BlueSnap and write less as possible code. I hope, you would enjoy it.
Please, don't hesitate talk to me and report issues.

Best regards,
Alexander Chertovsky

Instalation manual

1

Inside config make

return [
    'modules' => [
        'bluesnap' => [
            'class' => 'achertovsky\bluesnap\Module',
            'defaultStoreId' => 'fillme',
            'clientSideEncryptionKey' => 'fillme',
            'username' => 'fillme',
            'password' => 'fillme',
            // OR
            // code below is instruction how to fill 'authToken' field. Refer https://developers.bluesnap.com/docs/authentication
            // (module gonna do same if u provide username and pwd instead)
            // $encodedString = 'Basic '.base64_encode('username:password');
            // 'authToken' => $encodedString;
            'antiFraudSalt' => 'some word/phrase/anything that u want to use. it gonna be used to generate anti-fraud token. make sure only u and trusted people know it :)',
            'sellerId' => 'fillme',
            'dataProtectionKey' => 'fillme', //set it only if you want to use "Require Notification Receipt". Otherwise it wont be used
            'backToSellerUrl' => 'http://yoursite.com/thankyoupage',
        ],
    ],
    'components' => [
        'bluesnap' => [
            'class' => 'achertovsky\bluesnap\Bluesnap',
        ],
    ],
];

2

Run through this manual https://support.bluesnap.com/page/setting-up-your-data-protection-key-1
WARNING i assume after changing you wont be able to decrypt already encrypted parameters.

3

Configure your IPN url according this manual https://support.bluesnap.com/docs/ipn-setup

4 (optional)

To support paypal run through: https://support.bluesnap.com/docs/connecting-paypal-and-bluesnap Support paypal subscriptions: https://support.bluesnap.com/docs/enabling-subscriptions-with-paypal

Usage examples

Check wiki for usage examples.