ondrakoupil / csob

PHP client for ČSOB payment gateway eAPI
MIT License
44 stars 18 forks source link

$extensionStatus->getFIK() == NULL #10

Closed lamvanduyet closed 7 years ago

lamvanduyet commented 7 years ago

Hi, getFik() after successfull payments returns null..I don't know what is wrong. All I do after redirect is: $extensionStatus = new EETStatusExtension(); echo $extensionStatus->getFIK(); Do I miss something? Thank you for help.

ondrakoupil commented 7 years ago

Hi, the Extension object is meant to be used together with main Client methods, paymentStatus() in your case. You'll need the payment's PayID - that's the code you receive from $client->receiveReturningCustomer(), you should save it for future use. To get payment status together with the status of EET transaction:

$extension = new EETStatusExtension();
$paymentStatus = $client->paymentStatus($payId, true, $extension);
$eetStatus = $extension->getEETStatus();
$fik = $extension->getFIK();