Bitcoin Forum
May 10, 2024, 08:33:55 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Problem with Tabsa's "Bitcoin payment via mybitcoin.com" for OpenCart  (Read 1252 times)
awozny (OP)
Member
**
Offline Offline

Activity: 75
Merit: 10



View Profile
June 19, 2011, 10:51:33 AM
 #1

Hello,

I am attempting to add Tabsa's "Bitcoin payment via mybitcoin.com" gateway to OpenCart 1.5.0.4. It is hosted on a linux based hosting company. I was able to install OpenCart with out any problems. All functions work fine.

The problem arises when I installed : http://www.opencart.com/index.php?route=extension/extension/info&extension_id=1981&filter_search=bitcoin&sort=e.date_modified&order=DESC


The installation steps for the Bitcoin payment gateway were as follows:

1. In mybitcoin.com enable merchant tools, checkbox "Enable SCI Payment Automation"
2. In mybitcoin.com "SCI Receipt URL:" fill in [http://YOUR_OPENCART_URL/index.php?route=payment/btc_mybitcoin/callback]
3. Upload files into your opencart installation

Steps 1 through 3 no problem,  step 4 is when it craps out.

4. Go to your opencart administration. Extensions -> Payments -> "BTC mybitcoin.com" click [Install]

When I go to Extensions -> Payments that is when an error screen is generated:


Parse error: syntax error, unexpected T_VARIABLE in /home/bitcoinz/public_html/shop/admin/language/english/payment/btc_mybitcoin.php on line 1


The path listed in the above error is correct. I have looked at the btc_mybitcoin.php file but have no idea why it is failing.

This is the text from the btc_mybitcoin.php file:

<?php$_['heading_title']      = 'BTC mybitcoin.com';// Text$_['text_payment']       = 'Payment';$_['text_success']       = 'Success: You have modified BTC (via mybitcoin.com) payment module!';$_['text_btc_mybitcoin'] = '<a onclick="window.open(\'https://www.mybitcoin.com/\');"><img src="view/image/payment/bitcoin.png" alt="Mybitcoin.com" title="Mybitcoin.com" style="border: 1px solid #EEEEEE;" /></a>';// Entry$_['entry_order_status'] = 'Order Status:';$_['entry_status']       = 'Status:';$_['entry_sort_order']   = 'Sort Order:';$_['entry_username']     = 'SCI Username:';$_['entry_autokey']      = 'SCI Automation Key:';$_['entry_btc_address']  = 'Your Bitcoin address at mybitcoin.com:';// Error$_['error_permission']   = 'Warning: You do not have permission to modify payment BTC (via mybitcoin.com) module!';$_['error_username']     = 'Warning: SCI Username is required';$_['error_autokey']      = 'Warning: SCI Automation Key is required';?>


Can anybody shed some light on what is happening and why it is failing.

Many thanks in advance

Peace






1715330035
Hero Member
*
Offline Offline

Posts: 1715330035

View Profile Personal Message (Offline)

Ignore
1715330035
Reply with quote  #2

1715330035
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715330035
Hero Member
*
Offline Offline

Posts: 1715330035

View Profile Personal Message (Offline)

Ignore
1715330035
Reply with quote  #2

1715330035
Report to moderator
1715330035
Hero Member
*
Offline Offline

Posts: 1715330035

View Profile Personal Message (Offline)

Ignore
1715330035
Reply with quote  #2

1715330035
Report to moderator
awozny (OP)
Member
**
Offline Offline

Activity: 75
Merit: 10



View Profile
June 19, 2011, 11:31:58 AM
 #2

I just had to change the text to all be NOT on one line ... This is what it should look like .

<?php
$_['heading_title']      = 'BTC mybitcoin.com';

// Text
$_['text_payment']       = 'Payment';
$_['text_success']       = 'Success: You have modified BTC (via mybitcoin.com) payment module!';
$_['text_btc_mybitcoin'] = '<a onclick="window.open(\'https://www.mybitcoin.com/\');"><img src="view/image/payment/bitcoin.png" alt="Mybitcoin.com" title="Mybitcoin.com" style="border: 1px solid #EEEEEE;" /></a>';

// Entry
$_['entry_order_status'] = 'Order Status:';
$_['entry_status']       = 'Status:';
$_['entry_sort_order']   = 'Sort Order:';
$_['entry_username']     = 'SCI Username:';
$_['entry_autokey']      = 'SCI Automation Key:';
$_['entry_btc_address']  = 'Your Bitcoin address at mybitcoin.com:';

// Error
$_['error_permission']   = 'Warning: You do not have permission to modify payment BTC (via mybitcoin.com) module!';
$_['error_username']     = 'Warning: SCI Username is required';
$_['error_autokey']      = 'Warning: SCI Automation Key is required';

?>


Thank you Gabriel Beal for the idea in thread : http://forum.bitcoin.org/index.php?topic=5392.0
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!