Balanced Payments Payment Gatway Integration using PHP

Discussion in 'PHP' started by ahdsan, Jan 16, 2014.

  1. #1
    I want to integrate balanced payment using PHP, but not finding a way on how to start.
    I downloaded the files from https://github.com/balanced/balanced-php

    but it is showing errors . i think it is for namespaces etc.
    what is a composer ?
    I have no clue where to start.
    Its a shared hosting so I dont have access to shell.

    Pls help !
     
    ahdsan, Jan 16, 2014 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    You're not posting the actual errors, nor providing a link to the non-functioning site. How are we supposed to know what's wrong?
     
    PoPSiCLe, Jan 16, 2014 IP
  3. ahdsan

    ahdsan Member

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    if you download the files from the link I gave you can understand.

    require('src/Balanced/Bootstrap.php');
    Bootstrap::init();

    it gives error on the second line in the above

    also in the attached example, the code is to debit a bank, but in the link or download i cudn't find this autoload.php
    which is included in the attached txt.
     

    Attached Files:

    ahdsan, Jan 16, 2014 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    No, the files don't help. If you could just post the error message, that would be so much more helpful...

    Although, if you think it's related to namespaces, you're probably running a PHP version that doesn't support namespaces. (That would be any version below 5.3). Solution: Upgrade PHP or switch hosts.

    Oh, and I hope the API key and the credit card number you posted in that .txt file are just examples. Otherwise, I'd probably call your bank right now.
     
    nico_swd, Jan 19, 2014 IP