4 replies [Last post]
jimkont's picture
Offline
Joined: 10/16/2008
Juice: 55
Was this information Helpful?

i am trying to create a credit card payment module for proxypay3 system for a Greek bank
the proxypay system in a few words:
1)the user is redirected to proxypay server posting some variables (amount, shopID,...)
2)the server validates the posting variables with the ubercart shop (in case the user hacks the post)
3)the user is redirected
3.1) in a "paymentOK" page
3.2) in a "paymentNotOK" page
in the meanwhile the server confirms the payment with the site, but this can be before or after the redirection to the paymentOK page

my question is:
When do i complete the order and what do i show in paymentOK page

I think the order should be completed in the the confirmation by the server, where i should call uc_cart_complete_sale and uc_payment_enter
otherwise if it is completed in the paymentOK page and the confimation never arrives (or the user enters the page manually) the order will not be valid

then when the user reaches paymentOK page and
a) the confirmation has not yet arrived, what do i show to the user, since the order does not exist in his orders
b) the confirmation has arrived but i cannot make use of the /cart/checkout/complete page since it would make a duplicate call to uc_cart_complete_sale and cannot make use of the $output of the function

any ideas?
thanks in advance

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: payment method

I can't remember exactly how I'm doing it, but I think I call uc_cart_complete_sale() twice... when I verify Payment and when the user returns, and Ubercart knows to not do anything the second time. Something like that... you should look in the core PayPal module for code related to the Website Payments Standard payment method.

jimkont's picture
Offline
Joined: 10/16/2008
Juice: 55
thanks for the info, i 'll

thanks for the info,

i 'll run some test with the demo mode and see how it works...

abord's picture
Offline
Joined: 06/09/2009
Juice: 2
Trying to make a payment module

I try to make a payment module based on deltapay by Alpha bank. Has anyone managed to make something similar for eurobank.
I have to pass the total variable on a charge variable of https://www.deltapay.gr/entry.asp

Thanks in advance

vpapadim's picture
Offline
Joined: 06/25/2009
Juice: 2
Greek bank Payment gateways

hello, I am looking for payment methods for Greek gateways. Did anyone create these for ubercart?

thanks,

vasilis