SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    passing variables to worldpay

    i am having a problem with worldpay. i have pasted the code as below. on the page form which connect to worldpay.the cartid does not give any error mssg but the amount does.

    <form action="https://select.worldpay.com/wcc/purchase"
    method=POST>
    <input type=hidden name="instId" value="117963">
    <input type=hidden name="cartId" value="$cartid">
    <input type=hidden name="amount" value="$myvar">
    <input type=hidden name="currency" value="EUR">
    <input type=hidden name="testMode" value="100">
    <input type=submit value="Buy This"> </form>

    but worldpay cannot translate the variable. so please help me solve passing the values of amount to worldpay.
    Last edited by php_prgr; Apr 28, 2005 at 22:18.

  2. #2
    $this->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Dec 2003
    Location
    Federal Way, Washington (USA)
    Posts
    1,526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could this be the way your code should be?

    Code:
    <input type=hidden name="cartid" value="$cartid">
    <input type=hidden name="amount" value="$amount">
    Note: You had cartId (note the capital I) instead of cartid. PHP is case-sensitive.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    Showcase your music collection on the Web


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •