codeigniter problem

Discussion in 'PHP' started by ahdsan, Jun 2, 2011.

  1. #1
    I am using barclays payment gateway.
    there i need to pass a return url as we pass in paypal
    and the response is send with order id appended to the return url
    for example:
    i have set returnurl = https://www.example.com/barclays/success/

    the payment gateway sends it as GET parameter
    as https://www.example.com/barclays/success/?oid=abc00001

    and i am getting this error
    A PHP Error was encountered
    Severity: Warning
    Message: Missing argument 1 for Barclays::success()
    Filename: controllers/barclays.php
    Line Number: 154


    i have a controller barclay with method success($oid)

    pls help ?
     
    ahdsan, Jun 2, 2011 IP
  2. resolver

    resolver Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    you need to pass $oid to Barclays::success()

    something like this
    Barclays::success($oid);
    Code (markup):
     
    resolver, Jun 2, 2011 IP
  3. ahdsan

    ahdsan Member

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    we just post the return url as https://www.example.com/barclays/success/
    and it is from the barclays site that, the ?oid=adv001 is appended.
    now in the controller how to get this.
    i tried with passing parameter as $oid but it dint get it....
     
    ahdsan, Jun 2, 2011 IP
  4. Bitrain

    Bitrain Active Member

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #4
    Can try:
    
    Barclays::success($_REQUEST[$oid]);
    
    PHP:
     
    Bitrain, Jun 3, 2011 IP