News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Postfinance Yellowpay - Switzerland

Started by refresh, September 07, 2005, 12:29:48 PM

Previous topic - Next topic

refresh

hello all,

I'm quite a newbie about mambo-phpshop, but I already want to contribute! ;-)

I found a way to use the yellownet system, but I really want some advice.
I based my ps_yellowet.php and ps_yellownet.cfg.php on paymate (didn't know which one was best, I chose one at random).
So I searched and replaced all the "PAYMATE" with "YELLOWPAY", renamed the class etc... (in the dev doc).
I went to the admin section, added a payment method, activated it, typed the name of the class in the appropriate box, chose Paypal or related.
Then in the configuration tab, I typed:

<form name="form" action="https://yellowpay.postfinance.ch/checkout/Yellowpay.aspx?userctrl=Invisible" method="post" name="form">
<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="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="MY_TEXT_SHOP_ID" />
<input type="hidden" name="txtLangVersion" value="4108" />
<input type="hidden" name="txtOrderTotal" value="<?php printf("%.2f"$db->f("order_total"))?>" />
<input type="hidden" name="txtArtCurrency" value="CHF" />
<input type="hidden" name="txtHash" value="" />
<input type="hidden" name="txtTransactionID" value="<?php $db->p("order_id"?>" />
<input type="hidden" name="DeliveryPaymentType" value="deferred" />
<input type="submit" name="submit">
</form>


and finally saved the whole thing.

I really want to know if that's the correct way to do it, I don't really want to use a hack that coul d cause problems later.

I still have some problems with my yellonet configuration so I can't test yet, but maybe it could help some people here?

Best of luck,

Jean-Marie

Edit: It's working! I can't believe it :p

novitos

Hi there,

I am also a newbie but not as clever as you...
So I am about to give it a try to implement yellowpay too...
But I am already strugeling with "Rücksprungadresse" for:
- Erfolgreiche Zahlung
- Fehlgeschlagene Zahlung
can you give me a hint?

thanks anyway,
novitos

vedig

Hi,

I'm also quite new to php but I think I can help since I have other programming skills.

Next week I will start to implement a solution for yellownet.

Basically the Idea is to copy the paypal module and to change it for yellownet.

Did someone already done it?

I live in Zürich and we could also met to make this module work.

Regards

vedig


publipoint