VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Feature requests => Payment Modules => Topic started by: casibbald on March 17, 2005, 21:48:17 PM

Title: Moneybookers Details
Post by: casibbald on March 17, 2005, 21:48:17 PM
Hi,

I think i had placed this in the wrong place, if anyone can help id appreciate it.

Hi Soeren,

Please can you provide me with the database field names for the following info so i can prepare Moneybookers payment details:.

Field: Amount_discription
Detail: Moneybookers allows merchant to specify a detailed calculation for the total amount payable.

Field: Amount
Detail: This is the total sale amount before taxes or shipping.

Field: Shipping & Charges
Detail: Shipping, Handling Fees & Charges

Field: VAT Rate
Detail: VAT used for particular current transaction

Field: VAT Amount
Detail: VAT value/amount

Field: Total Amount
Detail: Sale Total

Field: purchase summary
Detail: purchase summary



Please also look to the following URL should you need clarification of the items i have mentioned.
http://www.moneybookers.com/merchant/en/moneybookers_gateway_manual.pdf


Thanks so much
Title: Re: Moneybookers Details
Post by: clubart on June 14, 2005, 23:05:05 PM
Is Moneybookers payment module finished?

I need it urgently.
Title: Re: Moneybookers Details
Post by: clubart on June 19, 2005, 09:11:49 AM
Please help, I urgently need MoneyBookers payment module.

Can someone help me?
Title: Re: Moneybookers Details
Post by: Soeren on August 09, 2005, 08:21:02 AM
You can easily set up your Moneybookers Payment Method by adding a new payment method, type  PayPal or related and fill in this code into the payment Extra info (see Tab "Configuration" in the payment method form):

<form action="https://www.moneybookers.com/app/payment.pl" method="post"
target="_blank" />
<input type="hidden" name="pay_to_email" value="paytoyouremail@yourdomain.com" />
<input type="hidden" name="transaction_id" value="<?php $db->p("order_id"?>" />
<input type="hidden" name="return_url" value="<?php echo SECUREURL
."index.php?option=com_phpshop&amp;page=checkout.result&amp;order_id=".$db->f("order_id")
?>
" />
<input type="hidden" name="cancel_url" value="<?php echo SECUREURL ."index.php" ?>">
<input type="hidden" name="status_url"
value="https://www.moneybookers.com/process_payment.cgi">
<input type="hidden" name="language" value="EN">
<input type="hidden" name="customer_id" value="USER_ID" />
<input type="hidden" name="pay_from_email" value="<?php echo $user->email?>" />
<input type="hidden" name="amount" value="<?php printf("%.2f",
$db->f("order_total"))?>
" />
<input type="hidden" name="currency" value="EUR" />
<input type="hidden" name="firstname" value="<?php echo $user->first_name?>" />
<input type="hidden" name="lastname" value="<?php echo $user->last_name?>" />
<input type="hidden" name="address" value="<?php echo $user->address_1?>&#10<?php
echo $user->address_2?>
" />
<input type="hidden" name="postal_code" value="<?php echo $user->zip?>" />
<input type="hidden" name="city" value="<?php echo $user->city?>" />
<input type="hidden" name="state" value="<?php echo $user->state?>" />
<input type="hidden" name="detail1_description" value="description1" />
<input type="hidden" name="detail1_text" value="detail1" />
<input type="hidden" name="detail2_description" value="description2" />
<input type="hidden" name="detail2_text" value="detail2" />
<input type="hidden" name="detail3_description="description3" />
<input type="hidden" name="detail3_text" value="detail3" />
<input type="hidden" name="confirmation_note" value="Your payment is ok. Thank you!" />
<input type="submit" value="Pay!">
</form>


Save it and you're done. You can modify the code just as you like.
A big thankyou goes out to "Lubos" <informuj (@) mailbox.sk> for this code.


ciao, Soeren
Title: Re: Moneybookers Details
Post by: Alvydas on October 14, 2006, 21:27:49 PM
I use moneybookers payment module for downloadables and need automatic update of order status from Pending to Confirm after the payment is processed. Any solution? Lot of thanks in advance!

Alvydas

Additional information: moneybookers posts payment details to merchant server showed in "status_url" with field "status" value equal 2 when the payment is processed; but it seems that virtuemart has no tool to process such info provided by moneybookers...
Title: Re: Moneybookers Details
Post by: Rolf Wagels on March 05, 2007, 11:21:39 AM
Hey
thanks for the modul data. On emore question: When the customer reaches the moneybrookers website, he gets the right amount, but the choosen goods look like:
description1  detail1
description2 detail2

Anything I can do about that?
Thanks
Rolf
Title: Re: Moneybookers Details
Post by: Riccardo on May 22, 2007, 13:40:00 PM
Quote from: Rolf Wagels on March 05, 2007, 11:21:39 AM
Hey
thanks for the modul data. On emore question: When the customer reaches the moneybrookers website, he gets the right amount, but the choosen goods look like:
description1  detail1
description2 detail2

Anything I can do about that?
Thanks
Rolf


I have the same problem too, can someone tell us how to show the real value according to the order made instead ogf these generic descriptions?

Thank you very much any help will be very appreciated!

Thx

Peace!
Title: Re: Moneybookers Details
Post by: Bun Tute on May 25, 2007, 08:10:21 AM
Hi,

Just some ideas...

<input type="hidden" name="detail1_description" value="Merchant :" />
<input type="hidden" name="detail1_text" value="yoursite.com" />
<input type="hidden" name="detail2_description" value="Order Number :" />
<input type="hidden" name="detail2_text" value="<?php printf("%08d", $db->f("order_id")); ?>" />
Title: Re: Moneybookers Details
Post by: Riccardo on May 27, 2007, 13:09:22 PM
thank
Quote from: Bun Tute on May 25, 2007, 08:10:21 AM
Hi,

Just some ideas...

<input type="hidden" name="detail1_description" value="Merchant :" />
<input type="hidden" name="detail1_text" value="yoursite.com" />
<input type="hidden" name="detail2_description" value="Order Number :" />
<input type="hidden" name="detail2_text" value="<?php printf("%08d", $db->f("order_id")); ?>" />


thank for the reply, unfortunately i'm not a php-er i can understand it but i cant create instructions from scratch. so can you help me to customize it accordingly to my needs?

i would like to show
Merchant name ->my site's name
Item ordered -> name of the item
Short description of item -> short description
Taxes -> taxes
Shipping -> Shipping costs
...

i know i can take these values from db but i don't know how. can you help me in this?

I thank you very much for your help, hi
Title: Re: Moneybookers Details
Post by: Roberto on June 20, 2007, 00:56:38 AM
Quote from: Soeren on August 09, 2005, 08:21:02 AM
You can easily set up your Moneybookers Payment Method by adding a new payment method, type  PayPal or related and fill in this code into the payment Extra info (see Tab "Configuration" in the payment method form):

<form action="https://www.moneybookers.com/app/payment.pl" method="post"
target="_blank" />
<input type="hidden" name="pay_to_email" value="paytoyouremail@yourdomain.com" />
<input type="hidden" name="transaction_id" value="<?php $db->p("order_id"?>" />
<input type="hidden" name="return_url" value="<?php echo SECUREURL
."index.php?option=com_phpshop&amp;page=checkout.result&amp;order_id=".$db->f("order_id")
?>
" />
<input type="hidden" name="cancel_url" value="<?php echo SECUREURL ."index.php" ?>">
<input type="hidden" name="status_url"
value="https://www.moneybookers.com/process_payment.cgi">
<input type="hidden" name="language" value="EN">
<input type="hidden" name="customer_id" value="USER_ID" />
<input type="hidden" name="pay_from_email" value="<?php echo $user->email?>" />
<input type="hidden" name="amount" value="<?php printf("%.2f",
$db->f("order_total"))?>
" />
<input type="hidden" name="currency" value="EUR" />
<input type="hidden" name="firstname" value="<?php echo $user->first_name?>" />
<input type="hidden" name="lastname" value="<?php echo $user->last_name?>" />
<input type="hidden" name="address" value="<?php echo $user->address_1?>&#10<?php
echo $user->address_2?>
" />
<input type="hidden" name="postal_code" value="<?php echo $user->zip?>" />
<input type="hidden" name="city" value="<?php echo $user->city?>" />
<input type="hidden" name="state" value="<?php echo $user->state?>" />
<input type="hidden" name="detail1_description" value="description1" />
<input type="hidden" name="detail1_text" value="detail1" />
<input type="hidden" name="detail2_description" value="description2" />
<input type="hidden" name="detail2_text" value="detail2" />
<input type="hidden" name="detail3_description="description3" />
<input type="hidden" name="detail3_text" value="detail3" />
<input type="hidden" name="confirmation_note" value="Your payment is ok. Thank you!" />
<input type="submit" value="Pay!">
</form>


Save it and you're done. You can modify the code just as you like.
A big thankyou goes out to "Lubos" <informuj (@) mailbox.sk> for this code.


ciao, Soeren


I try but after checkout i dont have the moneybookers screen. Can you help me?

Title: Re: Moneybookers Details
Post by: Roberto on July 16, 2007, 00:47:25 AM
I try but i have this on my screen after saving

Warning: add(/home20a/sub001/sc19973-KOZF/collectplanet.com/administrator/components/com_virtuemart/classes/payment/cp_payment.php) [function.add]: failed to open stream: No such file or directory in /mounted-storage/home20a/sub001/sc19973-KOZF/collectplanet.com/administrator/components/com_virtuemart/classes/ps_payment_method.php on line 174

Warning: add(/home20a/sub001/sc19973-KOZF/collectplanet.com/administrator/components/com_virtuemart/classes/payment/cp_payment.php) [function.add]: failed to open stream: No such file or directory in /mounted-storage/home20a/sub001/sc19973-KOZF/collectplanet.com/administrator/components/com_virtuemart/classes/ps_payment_method.php on line 174

Warning: add() [function.include]: Failed opening '/home20a/sub001/sc19973-KOZF/collectplanet.com/administrator/components/com_virtuemart/classes/payment/cp_payment.php' for inclusion (include_path='.:/usr/local/lib/php') in /mounted-storage/home20a/sub001/sc19973-KOZF/collectplanet.com/administrator/components/com_virtuemart/classes/ps_payment_method.php on line 174




Quote from: Soeren on August 09, 2005, 08:21:02 AM
You can easily set up your Moneybookers Payment Method by adding a new payment method, type  PayPal or related and fill in this code into the payment Extra info (see Tab "Configuration" in the payment method form):

<form action="https://www.moneybookers.com/app/payment.pl" method="post"
target="_blank" />
<input type="hidden" name="pay_to_email" value="paytoyouremail@yourdomain.com" />
<input type="hidden" name="transaction_id" value="<?php $db->p("order_id"?>" />
<input type="hidden" name="return_url" value="<?php echo SECUREURL
."index.php?option=com_phpshop&amp;page=checkout.result&amp;order_id=".$db->f("order_id")
?>
" />
<input type="hidden" name="cancel_url" value="<?php echo SECUREURL ."index.php" ?>">
<input type="hidden" name="status_url"
value="https://www.moneybookers.com/process_payment.cgi">
<input type="hidden" name="language" value="EN">
<input type="hidden" name="customer_id" value="USER_ID" />
<input type="hidden" name="pay_from_email" value="<?php echo $user->email?>" />
<input type="hidden" name="amount" value="<?php printf("%.2f",
$db->f("order_total"))?>
" />
<input type="hidden" name="currency" value="EUR" />
<input type="hidden" name="firstname" value="<?php echo $user->first_name?>" />
<input type="hidden" name="lastname" value="<?php echo $user->last_name?>" />
<input type="hidden" name="address" value="<?php echo $user->address_1?>&#10<?php
echo $user->address_2?>
" />
<input type="hidden" name="postal_code" value="<?php echo $user->zip?>" />
<input type="hidden" name="city" value="<?php echo $user->city?>" />
<input type="hidden" name="state" value="<?php echo $user->state?>" />
<input type="hidden" name="detail1_description" value="description1" />
<input type="hidden" name="detail1_text" value="detail1" />
<input type="hidden" name="detail2_description" value="description2" />
<input type="hidden" name="detail2_text" value="detail2" />
<input type="hidden" name="detail3_description="description3" />
<input type="hidden" name="detail3_text" value="detail3" />
<input type="hidden" name="confirmation_note" value="Your payment is ok. Thank you!" />
<input type="submit" value="Pay!">
</form>


Save it and you're done. You can modify the code just as you like.
A big thankyou goes out to "Lubos" <informuj (@) mailbox.sk> for this code.


ciao, Soeren
Title: Re: Moneybookers Details
Post by: Roberto on July 16, 2007, 16:33:02 PM
Got Solution. I was puting info on class info.

Thanks
Title: Re: Moneybookers Details
Post by: yannisc on July 19, 2007, 16:59:54 PM
I used the above code, but after payment, the order is still in "pending" status. How do we make it be confirmed?

thank you,
Yannis
Title: Re: Moneybookers Details
Post by: kaushikndm on April 28, 2008, 22:05:47 PM
http://www.moneybookers.com/merchant/en/moneybookers_gateway_manual.pdf
Title: Re: Moneybookers Details
Post by: kaushikndm on April 28, 2008, 22:08:46 PM
Quote from: Riccardo on May 22, 2007, 13:40:00 PM
Quote from: Rolf Wagels on March 05, 2007, 11:21:39 AM
Hey
thanks for the modul data. On emore question: When the customer reaches the moneybrookers website, he gets the right amount, but the choosen goods look like:
description1  detail1
description2 detail2
Anything I can do about that?
Thanks
Rolf
I have the same problem too, can someone tell us how to show the real value according to the order made instead ogf these generic descriptions?
Thank you very much any help will be very appreciated!
Thx
Peace!

http://www.moneybookers.com/merchant/en/moneybookers_gateway_manual.pdf
Title: Re: Moneybookers Details
Post by: zildar on May 01, 2008, 18:52:49 PM
Hi everyone,

I have multi-page registration form here, it has 5 pages and all in html ext.
the 1,2,and 3 input value will be process with php and send into my mysql database, after that the user must continue to step 4 which is moneybookers payment page, page 5 is about confirmation page. can anyone help me how to implement this, especially when the user proceed from page 3 to page 4. I'm totaly newbie here ^_^. I'm fully thanks for any help and guidance.
Title: Re: Moneybookers Details
Post by: bbhsoft on August 10, 2008, 18:01:45 PM
Hello,

I developed a fully working module about Moneybookers payment gateway integration in VirtueMart. You can find it here:

http://www.motov.net/downloads/moneybookers.com-payment-gateway-for-virtuemart/details.html

It will confirm the order ONLY IF THE CUSTOMER PAYS THE WHOLE INVOICE.
Title: Re: Moneybookers Details
Post by: Andy on November 06, 2008, 09:14:39 AM
Anyone tested this ?  http://www.motov.net/downloads/moneybookers.com-payment-gateway-for-virtuemart/details.html
Title: Re: Moneybookers Details
Post by: pickinart on January 25, 2009, 19:20:20 PM
I've also just got the Moneybookers payment module from Motov working fine.

I did have a small problem with it not properly updating the order status to confirmed. I got excellent help from them, turned out I was blocking access to the mb_notify.php script.
Title: Re: Moneybookers Details
Post by: JoMan on March 02, 2009, 21:26:18 PM
Hi, I want to integrate moneybookers payment method so i'm wondering if posted code works well? I know i can buy motov module but i'm wondering if the posted code is the "same" thing? It is only important for me that people and info is transferred to moneybookers so that my customers can pay! Than, i'll manually edit status etc.

Thanks!
Title: Re: Moneybookers Details
Post by: tantan on May 16, 2009, 19:25:22 PM
At the beginning of this topic , Soeren put a code and it works fine for me . Many thanks to guys that share their knowledge ... 

Cheers ! :D  
Title: Re: Moneybookers Details
Post by: surfparadise on June 04, 2009, 16:37:36 PM
Anybody have this code fixed? When a custumer pay, the order status is update? Please....
Title: Re: Moneybookers Details
Post by: paul2210 on August 12, 2009, 15:24:04 PM
Hello nofxsk8, did you manage to get your orders confirmed directly when it was paid through Moneybookers? I am trying this module as well and all works fine, only my order doesn't gets confirmed in the system. Is this a known issue?

Thanks in advanced,
Paul.
Title: Re: Moneybookers Details
Post by: lukasknol on December 13, 2009, 20:03:08 PM
I'm looking for this as well. The form works fine but I want to be redirected to Moneybookers and skip the pay button. Is there already a solution for this??

Quote from: Roberto on July 15, 2007, 21:40:08 PM
It is possible to remove the pay button and redirect to moneybookers like the paypal module?

Thanks




Quote from: Soeren on August 09, 2005, 08:21:02 AM
You can easily set up your Moneybookers Payment Method by adding a new payment method, type  PayPal or related and fill in this code into the payment Extra info (see Tab "Configuration" in the payment method form):

<form action="https://www.moneybookers.com/app/payment.pl" method="post"
target="_blank" />
<input type="hidden" name="pay_to_email" value="paytoyouremail@yourdomain.com" />
<input type="hidden" name="transaction_id" value="<?php $db->p("order_id"?>" />
<input type="hidden" name="return_url" value="<?php echo SECUREURL
."index.php?option=com_phpshop&amp;page=checkout.result&amp;order_id=".$db->f("order_id")
?>
" />
<input type="hidden" name="cancel_url" value="<?php echo SECUREURL ."index.php" ?>">
<input type="hidden" name="status_url"
value="https://www.moneybookers.com/process_payment.cgi">
<input type="hidden" name="language" value="EN">
<input type="hidden" name="customer_id" value="USER_ID" />
<input type="hidden" name="pay_from_email" value="<?php echo $user->email?>" />
<input type="hidden" name="amount" value="<?php printf("%.2f",
$db->f("order_total"))?>
" />
<input type="hidden" name="currency" value="EUR" />
<input type="hidden" name="firstname" value="<?php echo $user->first_name?>" />
<input type="hidden" name="lastname" value="<?php echo $user->last_name?>" />
<input type="hidden" name="address" value="<?php echo $user->address_1?>&#10<?php
echo $user->address_2?>
" />
<input type="hidden" name="postal_code" value="<?php echo $user->zip?>" />
<input type="hidden" name="city" value="<?php echo $user->city?>" />
<input type="hidden" name="state" value="<?php echo $user->state?>" />
<input type="hidden" name="detail1_description" value="description1" />
<input type="hidden" name="detail1_text" value="detail1" />
<input type="hidden" name="detail2_description" value="description2" />
<input type="hidden" name="detail2_text" value="detail2" />
<input type="hidden" name="detail3_description="description3" />
<input type="hidden" name="detail3_text" value="detail3" />
<input type="hidden" name="confirmation_note" value="Your payment is ok. Thank you!" />
<input type="submit" value="Pay!">
</form>


Save it and you're done. You can modify the code just as you like.
A big thankyou goes out to "Lubos" <informuj (@) mailbox.sk> for this code.


ciao, Soeren
Title: Re: Moneybookers Details
Post by: lukasknol on December 14, 2009, 22:07:41 PM
I found a solution to redirect directly to moneybookers so u dont need to use a pay button (this one is for creditcard):

---

vmRedirect( $url . $query_string );
} else {

---

Here is the whole script:

---

<?php
$db1 = new ps_DB();
$q = "SELECT country_2_code FROM #__vm_country WHERE country_3_code='".$user->country."' ORDER BY country_2_code ASC";
$db1->query($q);

$url = "https://www.moneybookers.com/app/payment.pl";
$tax_total = $db->f("order_tax") + $db->f("order_shipping_tax");
$discount_total = $db->f("coupon_discount") + $db->f("order_discount");



$post_variables = Array(
"pay_to_email" => MB_EMAIL,
"detail1_description" => $VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_NUMBER').": ". $db->f("order_id"),
"transaction_id" => $db->f("order_number"),
"detail1_text" => $db->f("order_id"),
"amount" => $db->f("order_total"),
"currency" => $db->f("order_currency"),
"firstname" => $dbbt->f('first_name'),
"lastname" => $dbbt->f('last_name'),
"address" => $dbbt->f('address_1'),
"address2" => $dbbt->f('address_2'),
"postal_code" => $dbbt->f('zip'),
"city" => $dbbt->f('city'),
"hide_login" => "1" ,
"recipient_description" =>  $vendor_name,
"country" => $dbbt->f('country'),
"pay_from_email" => $dbbt->f('user_email'),
"phone_number" => $dbbt->f('phone_1'),
"logo_url" => "http://www.moneybookers.com/creatives/pay_below_5.gif",
"status_url2" => "mailto:" . MB_EMAIL,
"return_url" => SECUREURL ."index.php?option=com_virtuemart&page=checkout.resultmb&order_id=".$db->f("order_id"),
"status_url" => SECUREURL ."administrator/components/com_virtuemart/notifymb.php",
"cancel_url" => SECUREURL ."index.php",
"merchant_fields" => "softwareproviderjum, order_id" ,
"softwareproviderjum" => "joomvm" ,
"order_id" => $db->f("order_id") ,
"new_window_redirect" => "1",
"language" => "EN" ,
"payment_methods" => "ACC",

);
if( $page == "checkout.thankyou" ) {
$query_string = "?";
foreach( $post_variables as $name => $value ) {
$query_string .= $name. "=" . urlencode($value) ."&";
}

vmRedirect( $url . $query_string );
} else {


echo '<form action="'.$url.'" method="post" target="_parent">';
echo '<input type="image" name="submit" src="http://www.moneybookers.com/images/logos/checkout_logos/checkout_240x80px.gif" border="0" alt="Click to pay with Moneybookers - it is fast, free and secure!" />';

foreach( $post_variables as $name => $value ) {
echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars($value).'" />';
}
echo '</form>';

}
?>

---
Title: Re: Moneybookers Details
Post by: akamaramaka on November 26, 2010, 02:49:37 AM
Could someone help with a small issue in MB? Do I need a secret word to run this payment system? The official module demands it once i add the payment option and tells to check the merchant area to get it. While in the merchant area on MB there is no sign of whatsoever secret words. Can I still use the Credit Card payment gateway and eWallet? Is it obligatory? Any clue highly appreciated..
Title: Re: Moneybookers Details
Post by: krofeta on December 21, 2010, 11:11:22 AM
Quote from: akamaramaka on November 26, 2010, 02:49:37 AM
Could someone help with a small issue in MB? Do I need a secret word to run this payment system? The official module demands it once i add the payment option and tells to check the merchant area to get it. While in the merchant area on MB there is no sign of whatsoever secret words. Can I still use the Credit Card payment gateway and eWallet? Is it obligatory? Any clue highly appreciated..
http://www.moneybookers.com/app/help.pl?s=m_shoppingcart
Title: Re: Moneybookers Details
Post by: lonerunner on May 14, 2011, 18:52:32 PM
Quote from: paul2210 on August 12, 2009, 15:24:04 PM
Hello nofxsk8, did you manage to get your orders confirmed directly when it was paid through Moneybookers? I am trying this module as well and all works fine, only my order doesn't gets confirmed in the system. Is this a known issue?

Thanks in advanced,
Paul.

I know its old thread but maybe someone managed to get solution to this, im having same problem. When someone make payment via moneybookers i have all shop records in mb history, and mb redirect user back to my website but dont change order to confirmed automatically, i have to manually login and confirm order, this way users have to wait for me to be able to download content. Can this be automated so they receive download instantly when make payment.
Title: Re: Moneybookers Details
Post by: kepesop on November 11, 2011, 19:10:12 PM
thank you for you info you helped me a lot
Title: Re: Moneybookers Details
Post by: jameel on November 20, 2011, 17:59:45 PM
a working moneybookers payment module is here


http://www.itechshop.org/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&product_id=21
Title: Re: Moneybookers Details
Post by: jameel on November 22, 2011, 14:28:23 PM
Get this module it works great.. will solve your problem as well..
It is iframe based module so customer will stay on your website, Full instructions are included
http://www.itechshop.org/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&product_id=21
Title: Re: Moneybookers Details
Post by: jameel on May 17, 2012, 18:01:28 PM
Now you can use 98 currencies in your favorite virtuemart and accept paypal, moneybookers or Payza (previously alertpay)..
these module convert non supported currencies into respective payment processor supported currency (you choose it in the backend)...

iMoneybookers extended payment module for non supported currencies

http://www.itechshop.org/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&product_id=23

Payza extended payment module for non supported currencies
http://www.itechshop.org/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&product_id=25

Paypal extended payment module for non supported currencies
http://www.itechshop.org/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&product_id=19

or get combo pack that include all three and save 50%
http://www.itechshop.org/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&product_id=24
Title: Re: Moneybookers Details
Post by: ribo on December 02, 2012, 11:15:17 AM
Quote from: lukasknol on December 14, 2009, 22:07:41 PM
I found a solution to redirect directly to moneybookers so u dont need to use a pay button (this one is for creditcard):

---

vmRedirect( $url . $query_string );
} else {

---

Here is the whole script:

---

<?php
$db1 = new ps_DB();
$q = "SELECT country_2_code FROM #__vm_country WHERE country_3_code='".$user->country."' ORDER BY country_2_code ASC";
$db1->query($q);

$url = "https://www.moneybookers.com/app/payment.pl";
$tax_total = $db->f("order_tax") + $db->f("order_shipping_tax");
$discount_total = $db->f("coupon_discount") + $db->f("order_discount");



$post_variables = Array(
"pay_to_email" => MB_EMAIL,
"detail1_description" => $VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_NUMBER').": ". $db->f("order_id"),
"transaction_id" => $db->f("order_number"),
"detail1_text" => $db->f("order_id"),
"amount" => $db->f("order_total"),
"currency" => $db->f("order_currency"),
"firstname" => $dbbt->f('first_name'),
"lastname" => $dbbt->f('last_name'),
"address" => $dbbt->f('address_1'),
"address2" => $dbbt->f('address_2'),
"postal_code" => $dbbt->f('zip'),
"city" => $dbbt->f('city'),
"hide_login" => "1" ,
"recipient_description" =>  $vendor_name,
"country" => $dbbt->f('country'),
"pay_from_email" => $dbbt->f('user_email'),
"phone_number" => $dbbt->f('phone_1'),
"logo_url" => "http://www.moneybookers.com/creatives/pay_below_5.gif",
"status_url2" => "mailto:" . MB_EMAIL,
"return_url" => SECUREURL ."index.php?option=com_virtuemart&page=checkout.resultmb&order_id=".$db->f("order_id"),
"status_url" => SECUREURL ."administrator/components/com_virtuemart/notifymb.php",
"cancel_url" => SECUREURL ."index.php",
"merchant_fields" => "softwareproviderjum, order_id" ,
"softwareproviderjum" => "joomvm" ,
"order_id" => $db->f("order_id") ,
"new_window_redirect" => "1",
"language" => "EN" ,
"payment_methods" => "ACC",

);
if( $page == "checkout.thankyou" ) {
$query_string = "?";
foreach( $post_variables as $name => $value ) {
$query_string .= $name. "=" . urlencode($value) ."&";
}

vmRedirect( $url . $query_string );
} else {


echo '<form action="'.$url.'" method="post" target="_parent">';
echo '<input type="image" name="submit" src="http://www.moneybookers.com/images/logos/checkout_logos/checkout_240x80px.gif" border="0" alt="Click to pay with Moneybookers - it is fast, free and secure!" />';

foreach( $post_variables as $name => $value ) {
echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars($value).'" />';
}
echo '</form>';

}
?>

---
thank you for the solution. i ll try