|
@@ 693-695 (lines=3) @@
|
| 690 |
|
// Payment details |
| 691 |
|
$prepared_invoice->payment_details = array(); |
| 692 |
|
|
| 693 |
|
if ( ! empty( $schema['properties']['gateway'] ) && isset( $request['gateway'] ) ) { |
| 694 |
|
$prepared_invoice->payment_details['gateway'] = $request['gateway']; |
| 695 |
|
} |
| 696 |
|
|
| 697 |
|
if ( ! empty( $schema['properties']['gateway_title'] ) && isset( $request['gateway_title'] ) ) { |
| 698 |
|
$prepared_invoice->payment_details['gateway_title'] = $request['gateway_title']; |
|
@@ 697-699 (lines=3) @@
|
| 694 |
|
$prepared_invoice->payment_details['gateway'] = $request['gateway']; |
| 695 |
|
} |
| 696 |
|
|
| 697 |
|
if ( ! empty( $schema['properties']['gateway_title'] ) && isset( $request['gateway_title'] ) ) { |
| 698 |
|
$prepared_invoice->payment_details['gateway_title'] = $request['gateway_title']; |
| 699 |
|
} |
| 700 |
|
|
| 701 |
|
if ( ! empty( $schema['properties']['currency'] ) && isset( $request['currency'] ) ) { |
| 702 |
|
$prepared_invoice->payment_details['currency'] = $request['currency']; |
|
@@ 701-703 (lines=3) @@
|
| 698 |
|
$prepared_invoice->payment_details['gateway_title'] = $request['gateway_title']; |
| 699 |
|
} |
| 700 |
|
|
| 701 |
|
if ( ! empty( $schema['properties']['currency'] ) && isset( $request['currency'] ) ) { |
| 702 |
|
$prepared_invoice->payment_details['currency'] = $request['currency']; |
| 703 |
|
} |
| 704 |
|
|
| 705 |
|
if ( ! empty( $schema['properties']['transaction_id'] ) && isset( $request['transaction_id'] ) ) { |
| 706 |
|
$prepared_invoice->payment_details['transaction_id'] = $request['transaction_id']; |
|
@@ 705-707 (lines=3) @@
|
| 702 |
|
$prepared_invoice->payment_details['currency'] = $request['currency']; |
| 703 |
|
} |
| 704 |
|
|
| 705 |
|
if ( ! empty( $schema['properties']['transaction_id'] ) && isset( $request['transaction_id'] ) ) { |
| 706 |
|
$prepared_invoice->payment_details['transaction_id'] = $request['transaction_id']; |
| 707 |
|
} |
| 708 |
|
|
| 709 |
|
// Dates |
| 710 |
|
if ( ! empty( $schema['properties']['date'] ) && isset( $request['date'] ) ) { |