VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Feature requests => Payment Modules => Topic started by: novitos on November 05, 2005, 19:39:36 pm

Title: Yellowpay Postfinance Switzerland
Post by: novitos on November 05, 2005, 19:39:36 pm
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:
Code: [Select]
<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_result

Failed
http://www.mySite.ch/index.php?option=com_phpshop&page=checkout.yp_result&error_code=error

Abort
http://www.mySite.ch/index.php?option=com_phpshop&page=checkout.yp_result&error_code=abort

Rü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
Title: Re: Yellowpay Postfinance Switzerland
Post by: garga on January 22, 2006, 14:51:49 pm
Hi novitos,

I've a problem to set Postfinance payement in my shop,
what have you changed in there file ?

-   checkout.thankyou
-   checkout.yp_result.php (return yellowpay to www.eco-tech.ch and interpret the return link)
one also need to edit the Language file
-   ps_yellowpay.php
-   ps_yellowpay.cfg.php

Thnaks & sorry for my english ;D
Title: Re: Yellowpay Postfinance Switzerland
Post by: publipoint on November 20, 2008, 16:41:59 pm
Code: [Select]
<input type="hidden" name="txtHash" value="<?php echo md5("MastershopID"."CHF".$db->f("order_total")."hashseed) ?>" />
That seems the correct way, as yellowpay calculates the md5 value by adding
ShopID+txtArtCurrency (CHF)+txtOrderTotal + HashSeed.

This gives an error 100, the hashseed is not being correctly calculated. Any ideas?
Title: Re: Yellowpay Postfinance Switzerland
Post by: ufopsi on May 06, 2009, 23:06:18 pm
This is the old system. Forget it and go for ogone.
Title: Re: Yellowpay Postfinance Switzerland
Post by: j.mueller on July 13, 2009, 12:29:40 pm
hey guys,
still having troubles? I finally solved my Problems with PostFinance. PostFinance recommendet me this module, which works really great: http://shop.customweb.ch/de/VirtueMart/

I hope that I could help you!

cheers
Title: Re: Yellowpay Postfinance Switzerland
Post by: ladumeni on January 15, 2010, 16:33:29 pm
Hello,

If you are more interested in an open source product we have developed a GPL licensed component that installs as a standard joomla component:

http://www.b-planet.com/VirtueMart/postfinance-module.html (http://www.b-planet.com/VirtueMart/postfinance-module.html)

In addition this component is 100% compatible with B-planet’s PayPal patch (http://www.b-planet.com/VirtueMart/paypal-patch.html) and includes a single click installation.

Cheers

Larsen

Title: Re: Yellowpay Postfinance Switzerland
Post by: Fintan on March 11, 2012, 10:01:40 am
Hello, has anyone found a solution for Joomla 2.5.x and vmart 2.x.x ?
Desperately needed.