WORLDPAY Integration using php

后端 未结 2 1904
醉酒成梦
醉酒成梦 2021-01-07 06:17

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....

相关标签:
2条回答
  • 2021-01-07 06:44

    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>dfgdf@gmail.com</shopperEmailAddress>
                  <browser>
                       <acceptHeader>'.$_SERVER['HTTP_ACCEPT'].'</acceptHeader>
                       <userAgentHeader>'.$_SERVER['HTTP_USER_AGENT'].'</userAgentHeader>
                   </browser>
               </shopper>
        </order>
    

    ';

    0 讨论(0)
  • 2021-01-07 06:58

    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>
    
    0 讨论(0)
提交回复
热议问题