You appear to be a bot. Output may be restricted
Description
Hides payment gateway select options after return from Amazon
Usage
$bool = EDD_Amazon_Payments::maybe_hide_gateway_select( $show );
Parameters
- $show
- ( bool ) required – Should gateway select be shown
Returns
bool
Source
File name: easy-digital-downloads/includes/gateways/amazon-payments.php
Lines:
1 to 9 of 9
public function maybe_hide_gateway_select( $show ) { if( ! empty( $_REQUEST['payment-mode'] ) && 'amazon' == $_REQUEST['payment-mode'] && ! empty( $_REQUEST['amazon_reference_id'] ) && ! empty( $_REQUEST['state'] ) && 'authorized' == $_REQUEST['state'] ) { $show = false; } return $show; }