Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2012
    Posts
    27
    Plugin Contributions
    0

    Default Variables to check payment method

    Hi all,

    I would like to ask for your help.

    What variables could I use on this site index.php?main_page=checkout_success to check the payment method?

    Thanks for the help in advance!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Variables to check payment method

    What are you attempting to do??
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2012
    Posts
    27
    Plugin Contributions
    0

    Default Re: Variables to check payment method

    I want to make a "credit payment" where the customer can pay the full price to a bank in monthly parts. If they choose this credit payment, then I want to redirect the customer to the homepage of the bank. But for this I need to know what payment option the customer picked on the index.php?main_page=checkout_payment site.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,892
    Plugin Contributions
    96

    Default Re: Variables to check payment method

    Try something like this (for the checkout_success page):
    Code:
    require(DIR_WS_CLASSES . 'order.php');
    $order = new order($orders_id);  //-The $orders_id value contains the ID of the customer's most recent order, set by the page's header_php.php
    
    if ($order->info['payment_method'] == 'credit_payment') {
      <do stuff you want here>
    }

  5. #5
    Join Date
    Sep 2012
    Posts
    27
    Plugin Contributions
    0

    Default Re: Variables to check payment method

    It is work!
    Thank You!

 

 

Similar Threads

  1. Check/Money Order - Can't set up this payment method
    By Lazar in forum Addon Payment Modules
    Replies: 5
    Last Post: 27 Sep 2011, 02:12 PM
  2. Only show payment method when UPS shipping method chosen?
    By helen610 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 28 Aug 2008, 03:04 AM
  3. Replies: 2
    Last Post: 11 May 2008, 03:10 AM
  4. Replies: 1
    Last Post: 17 Jun 2007, 10:24 AM
  5. Payment Method Check box's
    By Kitty in forum General Questions
    Replies: 4
    Last Post: 13 Nov 2006, 07:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg