Skip to content

Commit

Permalink
Set no_shipping variable to 1 by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Jun 21, 2021
1 parent 1a97ea3 commit 6887dc8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,17 @@ public function start( Payment $payment ) {
}
}

/**
* Shipping.
*
* We set the `no_shipping` variable to `1` so there is no prompt for
* an address. For now we require that each extensions requests the
* shipping details.
*
* @link https://github.com/pronamic/wp-pronamic-pay/issues/158
*/
$variables->set_value( 'no_shipping', '1' );

/**
* Currency
*/
Expand Down

0 comments on commit 6887dc8

Please sign in to comment.