Welcome, Guest. Please login or register.
Login with username, password and session length


Need help or want to talk to other developers? Join the VirtueMart Chat! Read more...

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: [1]   Go Down
Print
Author Topic: PayMate Module  (Read 4409 times)
Andrew
Newbie
*
Posts: 4


« on: December 12, 2004, 18:02:02 PM »

I'm using the PayMate module and it's a big step up from 1.1. I've got it working nicely and it is transferring the correct data to the system, however it doesn't transfer the buyers details. These need to be manually filled in a second time, adding another layer of unnecessary bother for the customer. I just need some help to edit the config to pass these parameters on.

The current config is:
Quote
<script language=\"javascript\">
function openExpress(){
   var url = 'https://www.paymate.com.au/PayMate/ExpressPayment?mid=<?php echo PAYMATE_USERNAME.\"&amt=\".$db->f(\"order_total\").\"&currency=\".$_SESSION['vendor_currency'].\"&ref=\".$db->f(\"order_id\").\"&pmt_sender_email=\".$user->email;?>'   var newWin = window.open(url, 'wizard', 'height=580,width=500,scrollbars=1,toolbar=no');
   self.name = 'parent';
   newWin.focus();
}
</script>
<div align=\"center\">
<p>
<a href=\"javascript:openExpress();\">
<img src=\"https://www.paymate.com.au/images/Paymate-Express-Banner-190x60.gif\" border=\"0\" alt=\"Pay with Paymate Express\">
<br />click here to pay your account
</p>
</div>


As I'm totally illiterate can someone tell me what the parameters are for:
pmt_sender_email - The buyer's email address  
pmt_contact_firstname - The buyer's first name  
pmt_contact_surname - The buyer's surname  
regindi_address1 - The first address line of the buyer's address  
regindi_address2 - The second address line of the buyer's address  
regindi_sub - The suburb of the buyer's address  
regindi_pcode - The postcode of the buyer's address  

so I can add these into the config.

Also Paymate offers a return feature. Is there a page in the system to accept this info and show the customer that their payment is processed?

Thanks in advance
Logged
Andrew
Newbie
*
Posts: 4


« Reply #1 on: December 13, 2004, 00:20:59 AM »

Haha all the info was in the iKobo thread so I've got the parameters worked out. Smiley

Anyone who is using PayMate and wants to transfer all the customer data to their site can use the following config:

 
Code:

<script language=\"javascript\">
function openExpress(){
   var url = 'https://www.paymate.com.au/PayMate/ExpressPayment?mid=<?php echo PAYMATE_USERNAME.
    
"&amt=\".$db->f(\"order_total\").
    \"&currency=\".$_SESSION['vendor_currency'].
    \"&ref=\".$db->f(\"order_id\").
    \"&pmt_sender_email=\".$user->email.
    \"&pmt_contact_firstname=\".$user->first_name.
    \"&pmt_contact_surname=\".$user->last_name.
    \"&regindi_address1=\".$user->address_1.
    \"&regindi_address2=\".$user->address_2.
    \"&regindi_sub=\".$user->city.
    \"&regindi_pcode=\".$user->zip;?>
'
   var newWin = window.open(url, 'wizard', 'height=580,width=500,scrollbars=1,toolbar=no');
   self.name = 'parent';
   newWin.focus();
}
</script>
<div align=\"center\">
<p>
<a href=\"javascript:openExpress();\">
<img src=\"https://www.paymate.com.au/images/Paymate-Express-Banner-190x60.gif\" border=\"0\" alt=\"Pay with Paymate Express\">
<br />click here to pay your account
</p>
</div>


Still I'd like to provide a confirmation screen when the payment  goes through. Or perhaps just change the \"pay now with Paymate\" logo to a \"thanks for your payment\" message in \"thanks for your order\" and \"order detail\" pages . Does anyone know if a similar function is available for CC or Paypal payments that can be modified to implement this? That would just about make the PayMate module perfect.

Post edited by: yappy, at: 2004/12/13 07:23

Post edited by: yappy, at: 2004/12/13 07:26

Post edited by: yappy, at: 2004/12/13 07:29

Post edited by: yappy, at: 2004/12/13 07:33
Logged
Mel
Newbie
*
Posts: 18


« Reply #2 on: January 13, 2005, 04:57:30 AM »

Hey yappy! did you get this working?

Even after I fixed line 5 and 8 in your code it still doesn't transfer the user name and address information!!
Logged
Andrew
Newbie
*
Posts: 4


« Reply #3 on: February 03, 2005, 18:14:24 PM »

Mel wrote:
Quote
Hey yappy! did you get this working?

Even after I fixed line 5 and 8 in your code it still doesn't transfer the user name and address information!!


 :laugh:  :laugh:
Yeah It works, but for some reason when I put the code into SB it stuffs it up. Here's a text file straight from my config.

 [file name=paymateconfig.txt size=900]http://mambo-phpshop.net/components/com_simpleboard/uploaded/files/paymateconfig.txt[/file]

[attachment deleted by admin]
Logged
Pages: [1]   Go Up
Print
Jump to: