Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2012
    Posts
    3
    Plugin Contributions
    0

    Default Next Step After Payment Server: Return URL

    Hi,

    I'm at the step where I can communicate to my payment server and need to know where to redirect from my payment server to Zen Cart (the Return URL as I seem to understand, a web address like http://Whatever_Address_Of_My_Websit...er_handler.php) in order to complete the remaining transaction actions:
    - Create Order #
    - Put Items in cart into created order
    - Reset cart for any other eventual sale
    - Set Order as Pending, Processing...

    Or if there's an error then go back to the cart and tell customer to recheck the error.

    I know that Paypal seems to be already configured and ready to use but my payment server is not Paypal or any of the already preset payment in Zen Cart.

    I tried to find such information but was still unable to find it anywhere.
    Can anyone please help me for that?

    Thank you very much.

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Next Step After Payment Server: Return URL

    The callback page should be supplied with (or be a part of) the payment module that you are using. There is nothing within ZenCart itself that can handle something like this.

    Perhaps if you could provide us with details of the Payment module you are using we may be able to provide more help.

    Cheers
    Rod

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Next Step After Payment Server: Return URL

    Quote Originally Posted by jmnduc View Post
    ... to complete the remaining transaction actions:
    - Create Order #
    - Put Items in cart into created order
    - Reset cart for any other eventual sale
    - Set Order as Pending, Processing...

    Or if there's an error then go back to the cart and tell customer to recheck the error.
    A correctly-written payment module will do all of those if you return the customer to index.php?main_page=checkout_process
    But your module better also be smart enough to verify that the information sent back can prove that the purchase is valid and hasn't been fraudulently faked!
    The built-in modules take care of these things in various ways depending on the technology used by the gateway. Every gateway is different.
    And PayPal-Standard is a horrible example to follow, so ... don't.

    Which gateway are you trying to code for?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Nov 2012
    Posts
    3
    Plugin Contributions
    0

    Default Re: Next Step After Payment Server: Return URL

    Quote Originally Posted by DrByte View Post
    A correctly-written payment module will do all of those if you return the customer to index.php?main_page=checkout_process
    But your module better also be smart enough to verify that the information sent back can prove that the purchase is valid and hasn't been fraudulently faked!
    The built-in modules take care of these things in various ways depending on the technology used by the gateway. Every gateway is different.
    And PayPal-Standard is a horrible example to follow, so ... don't.

    Which gateway are you trying to code for?
    Hi RodG and DrByte,

    Thank you very much for your answer, I really Appreciate it.

    Everything worked fine after I added 'http://My_Website_Name.com/index.php?main_page=checkout_process'
    The reason why I wrote this Post was because there was no information in any FAQ that I have to return to the website by adding the addess like above, I suggest that it should be added for people like me who might not notice that and might ask over and over the same question.

    Other than that, I had to change the SkipJack Payment Module a little bit:
    if (MODULE_PAYMENT_SKIPJACK_TESTMODE == True) {
    instead of
    if (MODULE_PAYMENT_SKIPJACK_TESTMODE == 'True') {

    And Added in function before_process() of skipjack.php:
    if (MODULE_PAYMENT_SKIPJACK_TESTMODE != True) { // Skip Error Message If Test Mode
    global $messageStack;
    ...
    }
    Last edited by jmnduc; 20 Apr 2013 at 07:40 AM.

  5. #5
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Next Step After Payment Server: Return URL

    Quote Originally Posted by jmnduc View Post
    Hi RodG and DrByte,

    Thank you very much for your answer, I really Appreciate it.

    Everything worked fine after I added 'http://My_Website_Name.com/index.php?main_page=checkout_process'
    All credit goes to DrByte for this solution.

    As for me, it seems I was leading you astray, so I've learned something from this thread too.

    Thanks guys.
    Rod

 

 

Similar Threads

  1. Server Error 406 on EBS Payment Gateway return URL
    By MartinKneeshaw in forum Addon Payment Modules
    Replies: 9
    Last Post: 10 Feb 2011, 08:50 AM
  2. PayPal Website Payments Standard - Return to Step 2 Payment
    By znrinarz in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 17 Jan 2011, 05:07 AM
  3. Payment module return URL?
    By sathyendra in forum Managing Customers and Orders
    Replies: 0
    Last Post: 12 Apr 2010, 01:25 PM
  4. next step after installation
    By animaxmsa in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Feb 2009, 09:54 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