Earlier I ask for help for to integrate Yellowpay -
www.yellowpay.ch, Postfinance Switzerland in my shop:
www.eco-tech.ch but nobody out there was willing or able to help…
after struggling for days I made it work now!
Here my Parameters:
<form name="form" action="https://yellowpay.postfinance.ch/checkout/Yellowpay.aspx?userctrl=Invisible" method="post" name="form">
<input type="image" name="submit" src="http://www.mySite/images/debitdirect.gif" border="0" alt="Bezahlen mit Yellowpay, schnell uns sicher!">
<input type="hidden" name="txtBLastName" value="<?php echo $user->first_name . " " . $user->last_name?>" />
<input type="hidden" name="txtBEmail" value="<?php echo $user->email?>" />
<input type="hidden" name="txtBAddr1" value="<?php echo $user->address_1?>" />
<input type="hidden" name="txtBZipCode" value="<?php echo $user->zip?>" />
<input type="hidden" name="txtBCity" value="<?php echo $user->city?>" />
<input type="hidden" name="txtBTel" value="<?php echo $user->phone_1?>" />
<input type="hidden" name="txtBFax" value="<?php echo $user->fax?>" />
<input type="hidden" name="txtShopid" value="yourShopID" />
<input type="hidden" name="txtOrderIDShop" value="<?php $db->p("order_id") ?>" />
<input type="hidden" name="txtLangVersion" value="2055" />
<input type="hidden" name="txtOrderTotal" value="<?php echo $db->f("order_total")?>" />
<input type="hidden" name="txtArtCurrency" value="CHF" />
<input type="hidden" name="txtHash" value="<?php echo md5("YourShopNo"."CHF".$db->f("order_total")."YourHashSeed")?>" />
<input type="hidden" name="txtShopPara" value= "order_id=<?php $db->p("order_id") ?>" />
<input type="hidden" name="DeliveryPaymentType" value="deferred" />
</form>
Attentions: if it works in test mode, dose not mean it works in live mode! If you run in test mode you “txtHash” does not get verified!!
I changed following page for my purpose:
- checkout.paymentradio.php (order of payment option).
- checkout.thankyou
And I created this:
- checkout.yp_result.php (return yellowpay to
www.eco-tech.ch and interpret the return link)
one also need to edit the Language file
Still to be done for automatic status update:
- ps_yellowpay.php
- ps_yellowpay.cfg.php
Return links, yellowpay to mySite:
Success
http://www.mySite.ch/index.php?option=com_phpshop&page=checkout.yp_resultFailed
http://www.mySite.ch/index.php?option=com_phpshop&page=checkout.yp_result&error_code=errorAbort
http://www.mySite.ch/index.php?option=com_phpshop&page=checkout.yp_result&error_code=abortRückgabe1
Return1@mySite.ch
Rückgabe2
Return2@mySite.ch
I am very proud it is working know, because when I started I had know php knowledge at all. Try it – and give me a feedback:
www.eco-tech.ch - but remember it is live shop.
What I did not manage now is to update the status automatically. I’ll be happy if somebody would write this pages.
technik@eco-tech.ch