Note that there are some explanatory texts on larger screens.

plurals
  1. POPayum - How to repeat Paypal payment when user close browser being on paypal side.
    primarykey
    data
    text
    <p>I have an ExpressCheckout up and running. Now I want to give the user the chance to make the payment at a later time. For example he closes the paypal process I keep data saved.</p> <p>I guess this must be pretty straightforward but somehow it wont redirect me to paypal anymore. The only thing I did so far is to use the identifier to find an existing model instead of creating a new one. This part works so it'll find the specific record of the PaypalExpressPaymentDetails table. But as I said it wont redirect to paypal. Here is the code:</p> <pre><code>$paymentName = 'demo_paypal'; $storage = $this-&gt;get('payum')-&gt;getStorageForClass( 'Demo\UserBundle\Entity\PaypalExpressPaymentDetails', $paymentName ); /** @var $paymentDetails PaymentDetails */ $paymentDetails = $storage-&gt;createModel(); $paymentDetails-&gt;setPaymentrequestCurrencycode(0, $currency); $paymentDetails-&gt;setPaymentrequestAmt(0, $amount); $storage-&gt;updateModel($paymentDetails); $captureToken = $this-&gt;getTokenFactory()-&gt;createCaptureToken( $paymentName, $paymentDetails, 'payments_transaction_success' ); $paymentDetails-&gt;setReturnurl($captureToken-&gt;getTargetUrl()); $paymentDetails-&gt;setCancelurl($captureToken-&gt;getTargetUrl()); $paymentDetails-&gt;setInvnum($paymentDetails-&gt;getId()); $storage-&gt;updateModel($paymentDetails); </code></pre> <p>Executed Controller:</p> <pre><code>... $identificator = new Identificator($entity-&gt;getId(), 'Demo\UserBundle\Entity\PaypalExpressPaymentDetails'); $captureToken = $this-&gt;payLateByPaypal($entity-&gt;getAmount(), "USD", $entity-&gt;getId(), $identificator); return $this-&gt;redirect($captureToken-&gt;getTargetUrl()); </code></pre> <p>Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload