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
