• Resolved webdeveloperalamin

    (@alaminaiubmohammad)


    		<?phpstatic function pmpro_payment_option_fields($values, $gateway)
    		{
    		?>
    		<tr class="pmpro_settings_divider gateway gateway_eWAY" <?php if($gateway != "eWAY") { ?>style="display: none;"<?php } ?>>
    			<td colspan="2">
    				<?php _e('eWAY Settings', 'pmpro'); ?>
    			</td>
    		</tr>
    		<tr class="gateway gateway_eWAY" <?php if($gateway != "eWAY") { ?>style="display: none;"<?php } ?>>
    			<th scope="row" valign="top">
    				<label for="eway_customerid"><?php _e('eWAY customer ID', 'pmpro');?>:</label>
    			</th>
    			<td>
    				<input type="text" id="eway_customerid" name="eway_customerid" size="60" value="<?php echo esc_attr($values['eway_customerid'])?>" />
    			</td>
    		</tr>
    		<tr class="gateway gateway_eWAY" <?php if($gateway != "eWAY") { ?>style="display: none;"<?php } ?>>
    			<th scope="row" valign="top">
    				<label for="eway_stored"><?php _e('Stored payments', 'pmpro');?>:</label>
    			</th>
    			<td>
    				<label for="eway_stored">
    					<input type="checkbox" id="eway_stored" name="eway_stored" value="1" <?php if(!empty($eway_stored)) { ?>checked="checked"<?php } ?> />
    					enable stored payments
    				</label>
    			</td>
    		</tr>		
    		<tr class="gateway gateway_eWAY" <?php if($gateway != "eWAY") { ?>style="display: none;"<?php } ?>>
    			<?php // eway custom pamyment settings here ?>
    		</tr>
    		<?php
    		}?>

    the checkbox is not updating or saving how can i save the checkbox in adding new gateway plugin on option fields

Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @

    Thank you for getting in touch.

    I would recommend looking at the following documentation in adding your own gateway to PMPro, this should help you get started -https://www.paidmembershipspro.com/gateway/adding-a-new-gateway/

    If you are working from this example, I would assume that you are not saving your custom gateway settings correctly. Are you saving your options to pmpro_payment_options?

    I hope this example helps 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Adding New Getways Checkbox is not updating’ is closed to new replies.