dev-master
9999999-devMakes bluesnap for yii2 much easier
The Requires
- php >=5.4.0
- yiisoft/yii2 >=2.0.4
Wallogit.com
2017 © Pedro Peláez
Makes bluesnap for yii2 much easier
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)
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',
],
],
];
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)
Configure your IPN url according this manual https://support.bluesnap.com/docs/ipn-setup, (*6)
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)
Check wiki for usage examples., (*8)
Makes bluesnap for yii2 much easier