Payment getaway landing page

Discussion in 'ClassiCraft WordPress Theme' started by malmsteen, Jan 24, 2015.

Thread Status:
Not open for further replies.
  1. malmsteen

    malmsteen Member

    Joined:
    Jan 23, 2015
    Messages:
    73
    Likes Received:
    0
    Hi. Can you guide me how to enable payment landing page which is I can put a list of bank and also paypal button. Now after click package it directly to paypal login which is not a good idea for those who doesnt have credit card or paypal account to submit a premium ad.

    If you don't have it, at least can you guide me where to change the link for payment so that I can change the link directly to my custom page instead direct to paypal.

    For next version you can upgrade as follows

    [​IMG]
     
  2. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !

    For this please hire a freelancer .
    To make such type of code customization it will effect the whole functionality of theme.

    Thanks & Regards
    Pramod
     
  3. malmsteen

    malmsteen Member

    Joined:
    Jan 23, 2015
    Messages:
    73
    Likes Received:
    0
    If you can't do about it, please guide me where to change the link for payment so that I can change the link directly to my custom page instead directly to paypal sign in.
     
  4. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !


    Please explain which link you are looking for?
    Please provide the screenshot of page which sent to new address (Paypal).

    Thanks & Regards
    Pramod
     
  5. malmsteen

    malmsteen Member

    Joined:
    Jan 23, 2015
    Messages:
    73
    Likes Received:
    0
    After we complete fill the ad form, we choose One time Ad Payment or Recurring Ad Payment then click submit the page is directly go to Paypal sign in. As figure given below.

    How to replace the link at submit in order to prevent the link go to paypal. I mean I wanna put the link go to my custom page instead of directly go to paypal after click SUBMIT button

    After below proses

    [​IMG]

    After click submit link directly go to this page

    [​IMG]
     
  6. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !

    You can get this in
    library\view\forms\step2_package.php

    Thanks & Regards
    Pramod
     
  7. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
  8. malmsteen

    malmsteen Member

    Joined:
    Jan 23, 2015
    Messages:
    73
    Likes Received:
    0
    Thank you. I manage to direct the button to my custom page after add wp_safe_redirect line.

    However, do you have any code to mention the total amount need to be pay or order summary at my custom page?

    to make this code functional at custom page
    Code:
    <!--Start Row-->
            <div class="form_row">
                <div class="label">
                    <label>Total price as per your selection. <span class="required">*</span></label>
     
                    <style type="text/css">.field span{font-size: 14px;}</style>
                    RM<span id="pkg_price">0</span>&nbsp;+&nbsp;RM<span id="feature_price">0</span>&nbsp;=&nbsp;RM<span id="result_price">0</span>
                    <input type="hidden" name="billing" id="billing" value="0"/>
                    <input type="hidden" name="total_price" id="total_price" value="0"/>
                    <input type="hidden" name="package_title" id="package_title" value=""/>
                    <input type="hidden" name="package_validity" id="package_validity" value=""/>
                    <input type="hidden" name="package_validity_per" id="package_validity_per" value=""/>
                    <input type="hidden" name="package_type" id="package_type" value=""/>
                    <br/>
                    <span class="description">Note: You will be able to see a preview in the next page</span>
                </div>
            </div>
            <!--End Row-->  
    and.. back button link.

    Code:
    <input type="button" name="step2" value="<?php echo GO_BACK; ?>" onclick="history.back()"/>
      <input type="hidden" name="cc_check_submit" value="<?php echo rand(); ?>"/>
        <input type="hidden" value="<?php echo base64_encode(serialize($posted)); ?>" name="posted" />
     
  9. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !

    Follow below link
    http://screenpresso.com/=WkBzb
    In the above image link you get highlighted code which is used to get all values and hope this will resolve your issue.

    Thanks
    Pramod
     
  10. malmsteen

    malmsteen Member

    Joined:
    Jan 23, 2015
    Messages:
    73
    Likes Received:
    0
    Hi Pramod.

    How to put this code at my custom page
    Code:
    $submit_fields = array(
                        'post_id' => $post_id,
                        'post_title' => $cc_post_title,
                        'pay_method' => 'paypal',
                        'amount' => $_POST['total_price'],
                        'f_period' => $_POST['f_period'],
                        'f_cycle' => $_POST['f_cycle'],
                        'installment' => $_POST['installment'],
                        's_price' => $_POST['s_price'],
                        's_period' => $_POST['s_period'],
                        's_cycle' => $_POST['s_cycle'],
                        'billing' => $_POST['billing'],
                        'cat_feature' => $featured_cate,
                        'home_feature' => $featured_home,
                        'activation_key' => $key
                    );
    And combine with this output line

    Code:
    <!--Start Row-->
            <div class="form_row">
                <div class="label">
                    <label>Total price as per your selection. <span class="required">*</span></label>
     
                    <style type="text/css">.field span{font-size: 14px;}</style>
                    RM<span id="pkg_price">0</span>&nbsp;+&nbsp;RM<span id="feature_price">0</span>&nbsp;=&nbsp;RM<span id="result_price">0</span>
                    <input type="hidden" name="billing" id="billing" value="0"/>
                    <input type="hidden" name="total_price" id="total_price" value="0"/>
                    <input type="hidden" name="package_title" id="package_title" value=""/>
                    <input type="hidden" name="package_validity" id="package_validity" value=""/>
                    <input type="hidden" name="package_validity_per" id="package_validity_per" value=""/>
                    <input type="hidden" name="package_type" id="package_type" value=""/>
                    <br/>
                    <span class="description">Note: You will be able to see a preview in the next page</span>
                </div>
            </div>
            <!--End Row-->  
    I mean after click submit.. the page will directly to my Payment custom page. But I just want to show at payment page the total amount that show in previous submit page before list all my payment method below it.
     
  11. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !


    please use like below in redirector
    wp_safe_redirect('yourlink.com/?amount='.$_POST['total_price']);
    for which you want to retrieve.

    $amount = $_GET['amount'];
    //echo this variable where you want to..

    By this process you will achieved required solution.

    Thanks & Regards
    Pramod
     
  12. malmsteen

    malmsteen Member

    Joined:
    Jan 23, 2015
    Messages:
    73
    Likes Received:
    0
    Hi sir.

    Sorry. I'm zero about coding. Can you help me with full coding? Let say my URL costum payment is http://www.mymarketplace.my/payment/

    So how i'm gonna do that.

    By the way I already send your support team the login pass to solve this matter.

    I think I will register to local merchant later. Hope your support team help me to integrate to this theme. I think they will provide technical specification or API something like Paypal does. This is their website this is for my country merchant service https://webcash.com.my/gateway-service

    But for now if you help me to create manual payment as I plan, I really appreciated.
     
  13. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !

    Sorry, I am not familiarized with that payment gateway and it required too much time to learn more about it , so I can't help with that.
    I recommend you to hire some freelancer to do that for you.

    Thanks & Regards
    Pramod
     
  14. malmsteen

    malmsteen Member

    Joined:
    Jan 23, 2015
    Messages:
    73
    Likes Received:
    0
    Ok we will see about it later. Maybe they have expertise to look into. Now I need help just to copy the previous page total sum (footer before submit button at form 2) to my custom payment page (http://www.mymarketplace.my/payment/)

    [​IMG]
     
  15. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !

    You can make settings from ( Settings=> Advance Settings ) regarding payment.


    You can find above given screenshot code in
    classicrafttheme\library\view\forms\step2_package.php
    Line 164: <label><?php echo TTLE_PRICE; ?> <span class="required">*</span></label>

    Make your setting as per your requirement.

    Thanks
    Pramod
     
  16. malmsteen

    malmsteen Member

    Joined:
    Jan 23, 2015
    Messages:
    73
    Likes Received:
    0
    I manage to copy the sentence and figure to custom page. But my new page still showing 0 + 0 = 0. My new page not pick up the total figure show at previous form. How to do this setting
     
  17. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !

    Unfortunately this type of custom coding does not supported by theme.
    It will effect the whole functionality of theme and create new issues.

    Thanks & Regards
    Pramod
     
  18. malmsteen

    malmsteen Member

    Joined:
    Jan 23, 2015
    Messages:
    73
    Likes Received:
    0
    Oh too bad. Ok noted
     
Thread Status:
Not open for further replies.

Share This Page