Plugin Directory

Changeset 1456193


Ignore:
Timestamp:
07/18/2016 05:42:14 AM (10 years ago)
Author:
kdclabs
Message:

Added Payment URL

Location:
camptix-kdcpay-gateway/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • camptix-kdcpay-gateway/trunk/camptix-kdcpay.php

    r1329794 r1456193  
    66 * Author: _KDC-Labs
    77 * Author URI: http://www.kdclabs.com/
    8  * Version: 1.2.3
     8 * Version: 1.3.0
    99 * License: GPLv2 or later
    1010 * Text Doomain: kdcpay
  • camptix-kdcpay-gateway/trunk/classes/class-camptix-payment-method-kdcpay.php

    r1329794 r1456193  
    3131    function camptix_init() {
    3232        $this->options = array_merge( array(
     33            'payment_url' => 'https://kdcpay.in/secure/transact.php',
    3334            'merchant_id' => '',
    3435            'merchant_key' => '',
     
    4445     */
    4546    function payment_settings_fields() {
     47        $this->add_settings_field_helper( 'payment_url', 'Payment URL', array( $this, 'field_text' ) );
    4648        $this->add_settings_field_helper( 'merchant_id', 'Merchant ID', array( $this, 'field_text' ) );
    4749        $this->add_settings_field_helper( 'merchant_key', 'Merchant Key', array( $this, 'field_text' ) );
     
    5759        $output = $this->options;
    5860
     61        if ( isset( $input['payment_url'] ) )
     62            $output['payment_url'] = $input['payment_url'];
    5963        if ( isset( $input['merchant_id'] ) )
    6064            $output['merchant_id'] = $input['merchant_id'];
     
    180184        ), $this->get_tickets_url() );
    181185       
     186        $payment_url = $this->options['payment_url'];
    182187        $merchant_id = $this->options['merchant_id'];
    183188        $secret_key = $this->options['merchant_key'];
     
    261266        }
    262267        echo '<div id="tix">
    263                     <form action="https://kdcpay.in/secure/transact.php" method="post" id="kdcpay_payment_form">
     268                    <form action="'.$payment_url.'" method="post" id="kdcpay_payment_form">
    264269                        ' . implode( '', $kdcpay_args_array ) . '
    265270                        <input type="submit" value="Continue to KDCpay" />
  • camptix-kdcpay-gateway/trunk/readme.txt

    r1329794 r1456193  
    44Tags: camptix, kdcpay
    55Requires at least: 3.5
    6 Tested up to: 4.4.1
    7 Stable tag: 1.2.3
     6Tested up to: 4.5.3
     7Stable tag: 1.3.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2424
    2525== Changelog ==
     26
     27= 1.3.0 =
     28* Added: Payment URL
    2629
    2730= 1.2.3 =
Note: See TracChangeset for help on using the changeset viewer.