cipf v0.3.13 paypal credentials now from admin menu

This commit is contained in:
asus
2024-03-25 18:32:03 +01:00
parent c9f0522ecc
commit 44a5d93f77
14 changed files with 160 additions and 173 deletions

View File

@@ -14,19 +14,27 @@
<form method="POST" action="<?php echo admin_url( 'admin-post.php' ); ?>">
<input type="hidden" name="action" value="<?php echo $admin_post_paypal; ?>">
<?php wp_nonce_field($nonce_paypal['_action'], $nonce_paypal['_name']); ?>
<div class="define_paypal_credentials_cipf define_paypal_client_id_cipf">
<label for="paypal_client_id_cipf">client id : </label>
<input type="text" id="paypal_client_id_cipf" name="client_id" value="<?php echo $paypal_credentials['client_id']; ?>" />
</div>
<div class="define_paypal_credentials_cipf define_paypal_secret_id_cipf">
<label for="paypal_client_secret_cipf">client secret : </label>
<input type="text" id="paypal_client_secret_cipf" name="client_secret" value="<?php echo $paypal_credentials['client_secret']; ?>" />
</div>
<div class="choose_sandbox_live_cipf">
<input type="radio" id="sandbox" name="<?php echo $sandbox_live['_name']; ?>" value="<?php echo $sandbox_live['sandbox']; ?>" checked />
<div class="choose_sandbox_live_cipf choose_sandbox_cipf">
<input type="radio" id="sandbox" name="<?php echo $paypal_inputs['sandbox_or_live']; ?>" value="sandbox" <?php if ($paypal_credentials['is_sandbox'] === true) {echo 'checked';} ?> />
<label for="sandbox">sandbox</label>
<input type="radio" id="live" name="<?php echo $sandbox_live['_name']; ?>" value="<?php echo $sandbox_live['live']; ?>" />
</div>
<div class="choose_sandbox_live_cipf choose_live_cipf">
<input type="radio" id="live" name="<?php echo $paypal_inputs['sandbox_or_live']; ?>" value="live" <?php if ($paypal_credentials['is_sandbox'] === false) {echo 'checked';} ?> />
<label for="live">live</label>
</div>
<input type="submit" value="send"/>
</form>

View File

@@ -1,5 +0,0 @@
<input type='text' id='mytext'>
<button id='mybutton'>send</button>
<input type='text' id='mytext_2'>
<button id='mybutton_2'>send</button>