VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Alberto87 on May 12, 2014, 14:52:57 PM

Title: Custom Paypal Plugin
Post by: Alberto87 on May 12, 2014, 14:52:57 PM
Hello,

i need to modify the plugin of paypal because the company where now i actually work want to implement the setefi backend.

Setefi office sent me a pdf with the instruction to create a message before the data will be sent to the server paypal.

The process  will be the following:

Customers select paypal payment, user data will be redirect in server setefi and after will be redirect to the paypal server, the customers pay, before the customers back to the shop the data return in the server of setefi (to check the status and update the backend) in the end the customers came back  to the shop.

The code:

the messsage:
Protocol
HTTP
Metodo
POST
Content-Type
URL Encoded (legacy): application/www-form-urlencoded or application/x-www-form-urlencoded
URL OF TEST
https://test.monetaonline.it/monetaweb/payment/2/xml

example of message:
id=99999999&password=99999999&operationType=initializepaypal&amount=1.00&currencyCode
=978&responseToMerchantUrl=http://www.merchant.it/notify.jsp&
recoveryUrl=http://www.merchant.it/error.jsp&merchantOrderId=TRCK0001&description=Descrizio
ne&
cardHolderName=NomeCognome&cardHolderEmail=nome@dominio.com&
customField=campoPersonalizzabile

please can you help me ? because i exactly dont know how to start.. ;)

regards

Alberto

p.s. Virtuemart Version 2.20b Joomla 2.5.14
Title: Re: Custom Paypal Plugin
Post by: GJC Web Design on May 12, 2014, 15:42:43 PM
Have no idea what setefi is but if you want to basically send the data to monetaonline who then sends it to Paypal then you need to build a monetaonline payment gateway plugin ....

trying to adapt the (now extremely complex ) Paypal plugin is a a waste of time..
better to start from scratch