2017 © Pedro Peláez
 

library yii2-bluesnap

Makes bluesnap for yii2 much easier

image

achertovsky/yii2-bluesnap

Makes bluesnap for yii2 much easier

  • Wednesday, June 6, 2018
  • by achertovsky
  • Repository
  • 1 Watchers
  • 0 Stars
  • 56 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 24 % Grown

The README.md

Introduction

Greetings, stranger., (*1)

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., (*2)

Best regards,
Alexander Chertovsky, (*3)

Instalation manual

1

Inside config make, (*4)

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., (*5)

3

Configure your IPN url according this manual https://support.bluesnap.com/docs/ipn-setup, (*6)

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, (*7)

Usage examples

Check wiki for usage examples., (*8)

The Versions

06/06 2018

dev-master

9999999-dev

Makes bluesnap for yii2 much easier

  Sources   Download

The Requires