Index: trunk/extensions/DonationInterface/gateway_common/gateway.adapter.php |
— | — | @@ -587,6 +587,18 @@ |
588 | 588 | } |
589 | 589 | |
590 | 590 | /** |
| 591 | + * Add a key to the transaction INSERT_ORDERWITHPAYMENT. |
| 592 | + * |
| 593 | + * $this->transactions['INSERT_ORDERWITHPAYMENT']['request']['REQUEST']['PARAMS'][ $key ][] = $value |
| 594 | + */ |
| 595 | + protected function addKeyToTransaction( $value, $type = 'PAYMENT' ) { |
| 596 | + |
| 597 | + if ( !in_array( $value, $this->transactions['INSERT_ORDERWITHPAYMENT']['request']['REQUEST']['PARAMS'][ $type ] ) ) { |
| 598 | + $this->transactions['INSERT_ORDERWITHPAYMENT']['request']['REQUEST']['PARAMS'][ $type ][] = $value; |
| 599 | + } |
| 600 | + } |
| 601 | + |
| 602 | + /** |
591 | 603 | * Builds a set of transaction data in name/value format |
592 | 604 | * *)The current transaction must be set before you call this function. |
593 | 605 | * *)Uses getTransactionSpecificValue to assign staged values to the |