|
@@ 412-419 (lines=8) @@
|
| 409 |
|
} |
| 410 |
|
|
| 411 |
|
// Return Card Details, if exists. |
| 412 |
|
if ( ! empty( $card->id ) ) { |
| 413 |
|
$this->attached_payment_method = $card; |
| 414 |
|
} else { |
| 415 |
|
give_set_error( 'stripe_error', __( 'An error occurred while processing the donation. Please try again.', 'give' ) ); |
| 416 |
|
give_record_gateway_error( __( 'Stripe Error', 'give' ), __( 'An error occurred retrieving or creating the ', 'give' ) ); |
| 417 |
|
give_send_back_to_checkout( '?payment-mode=' . give_clean( $_GET['payment-mode'] ) ); |
| 418 |
|
$this->attached_payment_method = false; |
| 419 |
|
} |
| 420 |
|
} // End if(). |
| 421 |
|
} |
| 422 |
|
|
|
@@ 520-529 (lines=10) @@
|
| 517 |
|
} |
| 518 |
|
|
| 519 |
|
// Return Card Details, if exists. |
| 520 |
|
if ( ! empty( $card->id ) ) { |
| 521 |
|
$this->attached_payment_method = $card; |
| 522 |
|
} else { |
| 523 |
|
|
| 524 |
|
give_set_error( 'stripe_error', __( 'An error occurred while processing the donation. Please try again.', 'give' ) ); |
| 525 |
|
give_record_gateway_error( __( 'Stripe Error', 'give' ), __( 'An error occurred retrieving or creating the ', 'give' ) ); |
| 526 |
|
give_send_back_to_checkout( '?payment-mode=stripe' ); |
| 527 |
|
|
| 528 |
|
$this->attached_payment_method = false; |
| 529 |
|
} |
| 530 |
|
} // End if(). |
| 531 |
|
} |
| 532 |
|
|