Index: trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php |
— | — | @@ -663,6 +663,11 @@ |
664 | 664 | $this->postdata['payment_product'] = 809; |
665 | 665 | $this->var_map['PAYMENTPRODUCTID'] = 'payment_product'; |
666 | 666 | $this->var_map['ISSUERID'] = 'issuer_id'; |
| 667 | + |
| 668 | + // Add the ISSUERID field if it does not exist |
| 669 | + if ( !in_array( 'ISSUERID', $this->transactions['INSERT_ORDERWITHPAYMENT']['request']['REQUEST']['PARAMS']['PAYMENT'] ) ) { |
| 670 | + $this->transactions['INSERT_ORDERWITHPAYMENT']['request']['REQUEST']['PARAMS']['PAYMENT'][] = 'ISSUERID'; |
| 671 | + } |
667 | 672 | break; |
668 | 673 | |
669 | 674 | case 'rtbt_enets': |
— | — | @@ -679,6 +684,11 @@ |
680 | 685 | $this->postdata['payment_product'] = 856; |
681 | 686 | $this->var_map['PAYMENTPRODUCTID'] = 'payment_product'; |
682 | 687 | $this->var_map['ISSUERID'] = 'issuer_id'; |
| 688 | + |
| 689 | + // Add the ISSUERID field if it does not exist |
| 690 | + if ( !in_array( 'ISSUERID', $this->transactions['INSERT_ORDERWITHPAYMENT']['request']['REQUEST']['PARAMS']['PAYMENT'] ) ) { |
| 691 | + $this->transactions['INSERT_ORDERWITHPAYMENT']['request']['REQUEST']['PARAMS']['PAYMENT'][] = 'ISSUERID'; |
| 692 | + } |
683 | 693 | break; |
684 | 694 | } |
685 | 695 | } |