...
Code Block | ||
---|---|---|
| ||
class MyGateway extends NonmerchantGateway { ... public function validatesuccess(array $get, array $post) { // Return the payment information return array( 'client_id' => $this->ifSet($get['client_id']), 'amount' => $this->ifSet($post['amount']), 'currency' => $this->ifSet($post['currency']), 'status' => "approved", 'reference_id' => null, 'transaction_id' => $this->ifSet($post['transaction_id']), 'parent_transaction_id' => null, 'invoices' => array() ); } ... } |
...