If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / Next Step After Payment Server: Return URL

Next Step After Payment Server: Return URL

Started by jmnduc on 19 Apr 2013, 6:52 AM · Views: 1,921

Results 1 to 5 of 5
19 Apr 2013, 6:52 AM
#1
jmnduc avatar

jmnduc

New Zenner

Join Date:
Nov 2012
Posts:
3
Plugin Contributions:
0

Post #1 by jmnduc

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_Website.com/payment_answer_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.

19 Apr 2013, 9:43 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #2 by rodg

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

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

19 Apr 2013, 7:53 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

jmnduc:

... 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.

20 Apr 2013, 6:37 AM
#4
jmnduc avatar

jmnduc

New Zenner

Join Date:
Nov 2012
Posts:
3
Plugin Contributions:
0

Post #4 by jmnduc

DrByte:

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;
...
}

20 Apr 2013, 8:43 AM
#5
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #5 by rodg

jmnduc:

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

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.