Package Data | |
---|---|
Maintainer Username: | cryoutsolutions |
Maintainer Contact: | adu@cryoutsolutions.com (Adrian Taralunga) |
Package Create Date: | 2014-02-26 |
Package Last Update: | 2014-08-06 |
Home Page: | |
Language: | PHP |
License: | BSD-2-Clause |
Last Refreshed: | 2024-11-24 15:05:58 |
Package Statistics | |
---|---|
Total Downloads: | 33 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 1 |
Total Open Issues: | 3 |
Install this package through Composer. To your composer.json
file, add:
"require-dev": {
"cryoutsolutions/paypalpayment": "dev-master"
}
Next, run composer update
to download it.
Add the service provider to app/config/app.php
, within the providers
array.
'providers' => array(
// ...
'Cryoutsolutions\Paypalpayment\PaypalpaymentServiceProvider',
)
Finally, add the alias to app/config/app.php
, within the aliases
array.
'aliases' => array(
// ...
'Paypalpayment' => 'Cryoutsolutions\Paypalpayment\Facades\PaypalPayment',
)
##Configuration php artisan config:publish cryoutsolutions/paypalpayment
##Create Recurring Profile
$startDate= "2014-02-28T00:00:00:000Z";
$frequency = 1;
$period = "Month";
$amount=1;
$initialAmount=1;
$description='recurring payment';
$creditCard = Paypalpayment::CreditCardDetailsType();
$creditCard->CreditCardNumber = "4745425765192217";
$creditCard->CreditCardType = "Visa";
$creditCard->CVV2 = "962";
$creditCard->ExpMonth = 02;
$creditCard->ExpYear = 2014;
Paypalpayment::CreateRecurringProfile($startDate,$frequency,$period,$amount,$initialAmount,$creditCard, $description);
#You'll receive an answer like this:
object(CreateRecurringPaymentsProfileResponseType)[141]
public 'CreateRecurringPaymentsProfileResponseDetails' =>
object(CreateRecurringPaymentsProfileResponseDetailsType)[150]
public 'ProfileID' => string 'I-GK8UGKHHL712' (length=14)
public 'ProfileStatus' => string 'PendingProfile' (length=14)
public 'TransactionID' => string '97X027701D1414537' (length=17)
public 'DCCProcessorResponse' => null
public 'DCCReturnCode' => null
public 'Timestamp' => string '2014-02-28T10:29:04Z' (length=20)
public 'Ack' => string 'Success' (length=7)
public 'CorrelationID' => string 'c4f4c798cc28d' (length=13)
public 'Errors' => null
public 'Version' => string '106.0' (length=5)
public 'Build' => string '9777850' (length=7)
Sponsored by therapick