Author

Topic: Problem with Tabsa's "Bitcoin payment via mybitcoin.com" for OpenCart (Read 1276 times)

member
Activity: 75
Merit: 10
I just had to change the text to all be NOT on one line ... This is what it should look like .

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

// Text
$_['text_payment']       = 'Payment';
$_['text_success']       = 'Success: You have modified BTC (via mybitcoin.com) payment module!';
$_['text_btc_mybitcoin'] = 'https://www.mybitcoin.com/\');">Mybitcoin.com';

// 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
member
Activity: 75
Merit: 10
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:

https://www.mybitcoin.com/\');">Mybitcoin.com';// 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






Jump to: