| @@ 1598-1614 (lines=17) @@ | ||
| 1595 | * |
|
| 1596 | * @return string The currency for the payment |
|
| 1597 | */ |
|
| 1598 | private function setup_currency() { |
|
| 1599 | $currency = $this->get_meta( '_give_payment_currency', true ); |
|
| 1600 | $currency = ! empty( $currency ) ? |
|
| 1601 | $currency : |
|
| 1602 | /** |
|
| 1603 | * Filter the default donation currency |
|
| 1604 | * |
|
| 1605 | * @since 1.5 |
|
| 1606 | */ |
|
| 1607 | apply_filters( |
|
| 1608 | 'give_payment_currency_default', |
|
| 1609 | give_get_currency( $this->form_id, $this ), |
|
| 1610 | $this |
|
| 1611 | ); |
|
| 1612 | ||
| 1613 | return $currency; |
|
| 1614 | } |
|
| 1615 | ||
| 1616 | /** |
|
| 1617 | * Setup the gateway used for the payment |
|
| @@ 1638-1647 (lines=10) @@ | ||
| 1635 | * |
|
| 1636 | * @return string The donation ID |
|
| 1637 | */ |
|
| 1638 | private function setup_transaction_id() { |
|
| 1639 | $transaction_id = $this->get_meta( '_give_payment_transaction_id', true ); |
|
| 1640 | ||
| 1641 | if ( empty( $transaction_id ) ) { |
|
| 1642 | $gateway = $this->gateway; |
|
| 1643 | $transaction_id = apply_filters( "give_get_payment_transaction_id-{$gateway}", $this->ID ); |
|
| 1644 | } |
|
| 1645 | ||
| 1646 | return $transaction_id; |
|
| 1647 | } |
|
| 1648 | ||
| 1649 | /** |
|
| 1650 | * Setup the IP Address for the payment |
|