Skip to content

Commit

Permalink
Update for removed payment ID fallback in formatted payment string (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Jul 3, 2023
1 parent 9773783 commit b8d9f82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public function start( Payment $payment ) {
// Purchase ID.
$purchase_id = $payment->format_string( $this->config->purchase_id );

if ( '' === $purchase_id ) {
$purchase_id = $payment->get_id();
}

$payment->set_meta( 'purchase_id', $purchase_id );
}

Expand Down

0 comments on commit b8d9f82

Please sign in to comment.