• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CodeIgniter and omnipay

#1
[eluser]Unknown[/eluser]
I'm trying to pass a custom value to a payment with PayPal - OmniPay

Here is the code I use :

Code:
$response = $gateway->purchase(
     array(
            'cancelUrl'=>base_url().'checkout/cancel',
      'returnUrl'=>base_url().'checkout/confirm',
      'amount' =>  number_format($retn['invoiceDatas']['price'], 2, '.', ''),
      'description' => 'Facture #'.$id,
      'currency' => 'EUR',
      'transactionid'=> $id,
      'custom' => $id,
      'description' => 'Facture'
        )
    )->send();
    $response->redirect();

And here is the code from checkout page :

Code:
$response = $gateway->completePurchase(array('amount' => 75.00, 'currency' => 'EUR'))->send();
    $data = $response->getData(); // this is the raw response object
    echo '<pre>';
    print_r($data);
    echo '</pre>';

But in the data printed array I've a lot of informations but no informations about "transactionID" or "custom" variable..

Please help. Thanks

#2
[eluser]Tpojka[/eluser]
Maybe not solving your problem, but have you noticed that there is two 'description' key in array?

#3
[eluser]Unknown[/eluser]
Yeah, it was for tests..


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.