Skip to Content Skip to Menu

[SOLVED] CCBILL payment gateway _basketFromCookie not consistent

  • buzibuzi
  • buzibuzi
  • OFFLINE
  • Posts: 42
  • Thanks: 0
  • Karma: 0
5 years 10 months ago - 5 years 10 months ago #308990 by buzibuzi
Hi,
from time to time, the _basketFromCookie Method (cbpaidsubscriptions.ccbill.php) doesn't return the OrderID value from the stored cookie.
this results in failure to process the IPN reply and a failed Order completion.

have you encountered this behavior ? any idea what i can do to fix it ?
Code:
protected function handleReturn( $paymentBasket, $postdata ) { $requestdata = array(); // Our only way was to store into a browser cookie the basket params, as CCBill doesn't return anything custom: get it: $this->_basketFromCookie( $requestdata ); return $this->_returnParamsHandler( $paymentBasket, $requestdata, 'R' ); }

Thanks
Last edit: 5 years 10 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • buzibuzi
  • buzibuzi
  • OFFLINE
  • Posts: 42
  • Thanks: 0
  • Karma: 0
5 years 10 months ago - 5 years 10 months ago #308991 by buzibuzi
ok, solved it.
since im using a sub folder for development, the cookie's path was not correct.
adding the path param to PHP setcookie() function in _getBasicRequstParams method fixed it
Code:
setcookie( 'cbsubs_ccbill_basket', (int) $paymentBasket->id . '|' . $paymentBasket->shared_secret, ( time() + ( 3600 * 16 ) ), '/', '.mydomain.com' );
Last edit: 5 years 10 months ago by buzibuzi.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum