You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| This file is for storing the credentials for subscription services such
103
+
| as Paypal, CCNow, 2Checkout, and others. This file provides a sane
104
+
| default location for this type of information, allowing packages
105
+
| to have a conventional place to find your various credentials.
106
+
|
107
+
*/
100
108
'services' => [
101
109
'paypal'=>[
102
110
'email'=>'',
@@ -121,3 +129,101 @@ Just follow the steps below and you will be able to get a processor:
121
129
```php
122
130
$paypal = Subscription::processor('Paypal');
123
131
```
132
+
133
+
#### Getting Processor Informationation
134
+
135
+
You can get basic Information for any processor by:
136
+
137
+
```php
138
+
$processor = Subscription::processor($proc);
139
+
140
+
$info = $processor->info();
141
+
```
142
+
143
+
The value returned is a ``ProcessorInfo`` object. You can call ``getName``, ``getLogo`` and ``getUrl`` methods on this processor to display Processor Name, Logo and Website Url for display purposes.
144
+
145
+
For ``getLogo`` method to work correctly you'll need to copy package assets to your project using
Complete method redirects to source processor so that your user can complete his payment.
162
+
163
+
``$id`` is your unique Order ID. ``$product`` and ``$consumer`` are objects implementing ``SubscriptionProductContract`` and ``SubscriptionConsumerContract`` respectively.
164
+
165
+
A basic implementation of ``SubscriptionProductContract`` and ``SubscriptionConsumerContract`` are included with source in form of ``Classes\SubscriptionProduct`` and ``Classes\SubscriptionConsumer`` respectively.
166
+
167
+
#### Handling Processor Notifications
168
+
169
+
You can handle Processor Notifications and Processor Cart Return Data by forwarding them to ``ipn`` and ``pdt`` functions respectively.
170
+
171
+
Both these function excpects only one input with request data as array and returns ``TransactionResult`` object.
172
+
173
+
```php
174
+
public function cartComplete(Request $request, $proc){
0 commit comments