Prabhu Murthi
Prabhu Murthi

Reputation: 2876

WORLDPAY Integration using php

Can any one please let me know is WORLDPAY payment gateway provides API for php stuffs? did any of you integrates this stuff? please advise me....

Upvotes: 2

Views: 12513

Answers (2)

Akhilraj N S
Akhilraj N S

Reputation: 9497

The documentation and detailed way of implementing worldpay is redirection is explained in worldpay integration techniques and xml way or the api way of integrating is described in worldpay xml integration like

<paymentService version="1.4" merchantCode="WPACC11112222">
<submit>
    <order orderCode="T021101078">
          <description>20 Tulip Bulbs from MYMERCHANT Webshops</description>
          <amount value="2600" currencyCode="EUR" exponent="2"/>
          <paymentDetails>
              <VISA-SSL>
                  <cardNumber>4444333322221111</cardNumber>
                  <expiryDate>
                      <date month="09" year="2015"/>
                  </expiryDate>
                  <cardHolderName>Akhilraj</cardHolderName>
                  <cvc>123</cvc>
                  <cardAddress>
                      <address>
                           <street>47A Queensbridge Rd</street>
                           <postalCode>CB94BQ</postalCode>
                           <countryCode>GB</countryCode>
                      </address>
                  </cardAddress>
               </VISA-SSL>
               <session shopperIPAddress="'.$_SERVER['SERVER_ADDR'].'" id="0215ui8ib1" />
          </paymentDetails>
          <shopper>
              <shopperEmailAddress>[email protected]</shopperEmailAddress>
              <browser>
                   <acceptHeader>'.$_SERVER['HTTP_ACCEPT'].'</acceptHeader>
                   <userAgentHeader>'.$_SERVER['HTTP_USER_AGENT'].'</userAgentHeader>
               </browser>
           </shopper>
    </order>

';

Upvotes: 0

Colin Pickard
Colin Pickard

Reputation: 46663

You can find complete documentation here: RBS WorldPay Technical Guides

A simple payment submission would look like this:

<form action="https://secure.wp3.rbsworldpay.com/wcc/purchase" method=POST>
    <input type=hidden name="instId" value="yourid">
    <input type=hidden name="cartId" value="cartid">
    <input type=hidden name="amount" value="9.99">
    <input type=hidden name="currency" value="GBP">
    <input type=submit value="Buy Now">    
</form>

Upvotes: 2

Related Questions