Comments (11)
the lib itself support it. you can adopt this example to laravel http://payum.org/doc/0.10/PaypalExpressCheckoutNvp/recurring-payments-basics
from payumlaravelpackage.
Thanks
from payumlaravelpackage.
hi, what this error means?
Resolving timed out after 5514 milliseconds
from payumlaravelpackage.
something failed due timeout, dont know any special details
from payumlaravelpackage.
can internet connection may cause it?
from payumlaravelpackage.
hi again. i recieved ack: success but in paypal payment is not save, did i missed something? this is my create code, thanks
<?php
$request = \App::make('request');
$request->attributes->set('payum_token', Input::get('payum_token'));
$token = $this->getHttpRequestVerifier()->verify($request);
$payment = $this->getPayum()->getPayment($token->getPaymentName());
$agreementStatus = new SimpleStatusRequest($token);
$payment->execute($agreementStatus);
$recurringPaymentStatus = null;
if (false == $agreementStatus->isSuccess()) {
header('HTTP/1.1 400 Bad Request', true, 400);
exit;
}
$agreementDetails = $agreementStatus->getModel();
$storage = $this->getPayum()->getStorage('Scribe\Models\Frontend\RecurringPaymentDetails');
$recurringPaymentDetails = $storage->createModel();
$recurringPaymentDetails['TOKEN'] = $agreementDetails['TOKEN'];
$recurringPaymentDetails['DESC'] = $agreementDetails['L_BILLINGAGREEMENTDESCRIPTION0'];
$recurringPaymentDetails['EMAIL'] = $agreementDetails['EMAIL'];
$recurringPaymentDetails['AMT'] = $agreementDetails['AMT'];
$recurringPaymentDetails['CURRENCYCODE'] = 'USD';
$recurringPaymentDetails['BILLINGFREQUENCY'] = 30;
$recurringPaymentDetails['PROFILESTARTDATE'] = date(DATE_ATOM);
$recurringPaymentDetails['BILLINGPERIOD'] = Api::BILLINGPERIOD_DAY;
$payment->execute(new CreateRecurringPaymentProfileRequest($recurringPaymentDetails));
$payment->execute(new SyncRequest($recurringPaymentDetails));
$doneToken = \App::make('payum.security.token_factory')->createToken('paypal_es', $recurringPaymentDetails, 'http://localhost:8000/recurring/done');
return \Redirect::to($doneToken->getTargetUrl());
from payumlaravelpackage.
Config?
from payumlaravelpackage.
This is my whole config
<?php
use Buzz\Client\Curl;
use Payum\Core\Storage\FilesystemStorage;
use Payum\Paypal\ExpressCheckout\Nvp\Api;
use Payum\Paypal\ExpressCheckout\Nvp\PaymentFactory as PaypalPaymentFactory;
$detailsClass = 'Payum\Core\Model\ArrayObject';
$agreement = 'Scribe\Models\Frontend\AgreementDetails';
$recurring = 'Scribe\Models\Frontend\RecurringPaymentDetails';
$tokenClass = 'Payum\Core\Model\Token';
$paypalPayment = PaypalPaymentFactory::create(new Api(new Curl, array(
'username' => 'xxxx',
'password' => 'xxxx',
'signature' => 'xxxx',
'sandbox' => true
)));
return array(
'token_storage' => new FilesystemStorage(__DIR__.'/../../../../storage/payments', $tokenClass, 'hash'),
'payments' => array(
'paypal_es' => $paypalPayment,
),
'storages' => array(
$detailsClass => new FilesystemStorage(__DIR__.'/../../../../storage/payments', $detailsClass),
$agreement => new FilesystemStorage(__DIR__.'/../../../../storage/payments', $agreement),
$recurring => new FilesystemStorage(__DIR__.'/../../../../storage/payments', $recurring),
)
);
from payumlaravelpackage.
@karlimlengco first, could you try to comment out storage for $detailsClass
.
from payumlaravelpackage.
i got it working, but in paypal it create two payment 1. Payment form = Completed, 2. Recurring Payment form = Created. is this correct?
from payumlaravelpackage.
Iiam getting this error what can i do for this error.but code is same as here.
Method [getHttpRequestVerifier] does not exist.
from payumlaravelpackage.
Related Issues (20)
- Any plans to support Moneris?
- Composer install fails laravel 5.1 HOT 4
- ReflectionException in Container.php line 737: Class payum does not exist HOT 12
- Does this package support laravel 5.2? HOT 3
- Getting 0 as hash for the targetUrl HOT 7
- Class payum does not exist HOT 1
- Why Using Core version 1.0.0 HOT 2
- Request Cancel{model: ArrayObject} is not supported HOT 2
- GetHumanStatus{model: ArrayObject} is not supported HOT 6
- Trait 'Payum\Core\GatewayAwareTrait' not found HOT 13
- Is this Compatible with latest laravel? 5.2 or 5.3? HOT 4
- Request GetHumanStatus{model: ArrayObject} is not supported. HOT 1
- Payum/PayumLaravelPackage paypal express checkout capture route not working
- Is this a active branch and compatible with latest laravel? 5.7 or 5.8?
- Missing decimal point in amount when using EloquentStorage and OmnipayBridge
- Request Refund{model: ArrayObject} is not supported. Make sure the gateway supports the requests and there is an action which supports this request (The method returns true). There may be a bug, so look for a related issue on the issue tracker. HOT 1
- Subscription defined by a start and end date.
- Notify Controller doUnsafeAction doesn't resolve gateway name parameter
- Configuration from a database?
- Not installing, Laravel Container issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payumlaravelpackage.