Giter VIP home page Giter VIP logo

Comments (11)

makasim avatar makasim commented on May 27, 2024

the lib itself support it. you can adopt this example to laravel http://payum.org/doc/0.10/PaypalExpressCheckoutNvp/recurring-payments-basics

from payumlaravelpackage.

karlimlengco avatar karlimlengco commented on May 27, 2024

Thanks

from payumlaravelpackage.

karlimlengco avatar karlimlengco commented on May 27, 2024

hi, what this error means?
Resolving timed out after 5514 milliseconds

from payumlaravelpackage.

makasim avatar makasim commented on May 27, 2024

something failed due timeout, dont know any special details

from payumlaravelpackage.

karlimlengco avatar karlimlengco commented on May 27, 2024

can internet connection may cause it?

from payumlaravelpackage.

karlimlengco avatar karlimlengco commented on May 27, 2024

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.

makasim avatar makasim commented on May 27, 2024

Config?

from payumlaravelpackage.

karlimlengco avatar karlimlengco commented on May 27, 2024

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.

makasim avatar makasim commented on May 27, 2024

@karlimlengco first, could you try to comment out storage for $detailsClass.

from payumlaravelpackage.

karlimlengco avatar karlimlengco commented on May 27, 2024

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.

nrnaveen avatar nrnaveen commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.