Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $data = array(
- "status" => $status,
- "agent" => $_SERVER["HTTP_USER_AGENT"],
- "ip" => $_SERVER["REMOTE_ADDR"],
- "updated_at" => new Zend_Db_Expr( "NOW()" ),
- "error_code" => ( $p2p->getErrorCode() ) ? $p2p->getErrorCode() : null,
- "error_message" => ( $p2p->getErrorMessage() ) ? $p2p->getErrorMessage() : null,
- "extra" => Zend_Json::encode( array(
- "Status" => $status,
- "Reference" => $referenceId,
- "ErrorCode" => $p2p->getErrorCode(),
- "ErrorMessage" => $p2p->getErrorMessage(),
- "Franchise" => $p2p->getFranchise(),
- "FranchiseName" => $p2p->getFranchiseName(),
- "BankName" => $p2p->getBankName(),
- "Authorization" => $p2p->getAuthorization(),
- "Receipt" => $p2p->getReceipt(),
- "TransactionDate" => $p2p->getTransactionDate(),
- "CreditCardNumber" => $p2p->getCreditCardNumber(),
- "Currency" => $p2p->getCurrency(),
- "TotalAmount" => $p2p->getTotalAmount(),
- "TaxAmount" => $p2p->getTaxAmount(),
- "PlatformCurrency" => $p2p->getPlatformCurrency(),
- "PlatformTotalAmount" => $p2p->getPlatformTotalAmount(),
- "PlatformConversionFactor" => $p2p->getPlatformConversionFactor(),
- "ShopperName" => $p2p->getShopperName(),
- "ShopperEmail" => $p2p->getShopperEmail(),
- "ExtraData" => $p2p->getExtraData()
- ) )
- );
- $where = $payment->getDs()->getAdapter()->quoteInto( "id = ?", $paymentData["id"] );
- $payment->update( $data, $where );
Add Comment
Please, Sign In to add comment