Recurring Payments
-
I am not getting a field to signify recurring payments (ie. Weekly, Bi-Weekly, Monthly). Not sure if problem lies within Start/Date Field for calendar pop up which appears a little off. Thank you
-
Hello Alan,
The drop-down field that your are looking this plug-in will not provide.
This would be something you would code your self.
Having the weekly, bi-weekly, Monthly, Bi-Monthly etc… Would Required you to have multiple plans.For example:
‘Weekly’ plan id would be ‘MB-XXXX-01-XXXXX’
‘Bi-Weekly’ plan id would be ‘MB-XXXX-02-XXXXX’
‘Monthly’ plan id would be ‘MB-XXXX-03-XXXXX’
‘Bi-Monthly’ plan id would be ‘MB-XXXX-04-XXXXX’Now that you’ve created the plans. you would setup you drop-down menu.
<tr><td>How Offen</td><td>
<select name=”x_recurring_billing_id”>
<option value=”MB-XXXX-01-XXXXX”>Weekly</option>
<option value=”MB-XXXX-02-XXXXX”>Bi-Weekly</option>
<option value=”MB-XXXX-03-XXXXX”>Monthly</option>
<option value=”MB-XXXX-04-XXXXX”>Bi-Monthly</option>
</select>
</td></tr>
You will be posting this to the confirm.php page.You will now need to make 2 more changes.
You will need to go to your wordpress admin panel. Click on Plugin’s> Editor>
On the top right side from the drop down menu click Global gateway e4 | Hosted Payment Page > and then Select.
Now click on globe-gateway-e4/confirm.php
Once here you are going to want to replace
This
if ( $recurring= $_POST[‘recurring’] == ‘TRUE’){
//code to be executed if condition is true;
$x_recurring_billing = ‘TRUE’;$x_recurring_billing_start_date = $_POST[‘x_recurring_billing_start_date’];
$x_recurring_billing_end_date = $_POST[‘x_recurring_billing_end_date’];
$x_recurring_billing_amount = $_POST[‘x_recurring_billing_amount’];
echo (‘<input type=”hidden” name=”x_recurring_billing” value=”‘ . $x_recurring_billing . ‘”>’ );
echo (‘<input type=”hidden” name=”x_recurring_billing_id” value=”‘ . $x_recurring_billing_id . ‘”>’ );
echo (‘<input type=”hidden” name=”x_recurring_billing_start_date” value=”‘ . $x_recurring_billing_start_date . ‘”>’ );
echo (‘<input type=”hidden” name=”x_recurring_billing_end_date” value=”‘ . $x_recurring_billing_end_date . ‘”>’ );
echo (‘<input type=”hidden” name=”x_recurring_billing_amount” value=”‘ . $x_recurring_billing_amount . ‘”>’ );}else{
}With
if ( $recurring= $_POST[‘recurring’] == ‘TRUE’){
//code to be executed if condition is true;
$x_recurring_billing = ‘TRUE’;
$x_recurring_billing_id = $_POST[‘x_recurring_billing_id’];
$x_recurring_billing_start_date = $_POST[‘x_recurring_billing_start_date’];
$x_recurring_billing_end_date = $_POST[‘x_recurring_billing_end_date’];
$x_recurring_billing_amount = $_POST[‘x_recurring_billing_amount’];
echo (‘<input type=”hidden” name=”x_recurring_billing” value=”‘ . $x_recurring_billing . ‘”>’ );
echo (‘<input type=”hidden” name=”x_recurring_billing_id” value=”‘ . $x_recurring_billing_id . ‘”>’ );
echo (‘<input type=”hidden” name=”x_recurring_billing_start_date” value=”‘ . $x_recurring_billing_start_date . ‘”>’ );
echo (‘<input type=”hidden” name=”x_recurring_billing_end_date” value=”‘ . $x_recurring_billing_end_date . ‘”>’ );
echo (‘<input type=”hidden” name=”x_recurring_billing_amount” value=”‘ . $x_recurring_billing_amount . ‘”>’ );}else{
}
Save the Changes.
Now you want to click on globe-gateway-e4/xlogin_transkey.php and remove
“$x_recurring_billing_id = “MB-XXXX-00-XXXXX”;”Next you will want to save these changes.
I followed the steps, but now I am no longer taken to the “subscription”or “recurring” transaction page after submitting the form. Any ideas?
The topic ‘Recurring Payments’ is closed to new replies.