Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Fixed "Fatal error: Uncaught Error: Call to a member function get_ord…
Browse files Browse the repository at this point in the history
…er_id() on null".
  • Loading branch information
remcotolsma committed Jun 10, 2016
1 parent 79aad8a commit 9a50dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function payment_method_is_required() {
* @see Pronamic_WP_Pay_Gateway::start()
*/
public function start( Pronamic_Pay_Payment $payment ) {
$order_id = $data->get_order_id();
$order_id = $payment->get_order_id();
$purchase_id = empty( $order_id ) ? $payment->get_id() : $order_id;

// Maximum length for purchase ID is 16 characters, otherwise an error will occur:
Expand Down

0 comments on commit 9a50dc1

Please sign in to comment.