Post by belowcost » Tue Feb 25, 2020 1:11 am

Have double checked all settings and codes with payment provider, but when trying to process an order the below errors appear.
Bluepay insists it is an opencart issue

Have tried BOTH the SSl and non SSL versions

SSL version returns a long detailed error, different from the below. (bluepay hosted form)

https://secure.bluepay.com/interfaces/shpf
Web server is returning an unknown error

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by straightlight » Tue Feb 25, 2020 1:15 am

SSL version returns a long detailed error, different from the below. (bluepay hosted form)

https://secure.bluepay.com/interfaces/shpf
Web server is returning an unknown error
What long error? More information is needed.

As for the bluepay extension payment, it has been removed from the master branch on github opencart which means it is no longer supported since recently.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by belowcost » Tue Feb 25, 2020 3:14 am

error if SSL version is turned on, during checkout final page get this:

Code: Select all

Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected "}" in "default/template/extension/payment/bluepay_redirect.twig" at line 50.' in /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php:259 Stack trace: #0 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php(216): Twig_Lexer->lexExpression() #1 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php(115): Twig_Lexer->lexVar() #2 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(581): Twig_Lexer->tokenize('<form class="fo...', 'default/templat...') #3 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(671): Twig_Environment->tokenize('<form class="fo...', 'default/templat...') #4 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(396): Twig_Environment->compileSource('<form class="fo...', 'default/templat...') #5 /home1/belowcst/storage-files/modification/system/library/template in /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php on line 259
straightlight wrote:
Tue Feb 25, 2020 1:15 am
SSL version returns a long detailed error, different from the below. (bluepay hosted form)

https://secure.bluepay.com/interfaces/shpf
Web server is returning an unknown error
What long error? More information is needed.

As for the bluepay extension payment, it has been removed from the master branch on github opencart which means it is no longer supported since recently.
Last edited by straightlight on Tue Feb 25, 2020 4:07 am, edited 1 time in total.
Reason: Added code tags.

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by straightlight » Tue Feb 25, 2020 3:33 am

Well, I'll be damned. Confirmed bug ...

In your catalog/view/theme/<your_theme>/template/extension/payment/bluepay_redirect.twig file,

find:

Code: Select all

% for month in months %}
								<option value="{{ month.value }}">{{ month.text }}</option>
							{% endfor %}
replace with:

Code: Select all

{% for month in months %}
								<option value="{{ month.value }}">{{ month.text }}</option>
							{% endfor %}
Then, follow this FAQ: viewtopic.php?f=134&t=215776#p718325 . This should resolved the issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by belowcost » Tue Feb 25, 2020 4:03 am

I was really hoping that would work.

I edited it and reupload that file to the location, cleared cache refreshed

but same error it appears.

Code: Select all

Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected "}" in "default/template/extension/payment/bluepay_redirect.twig" at line 57.' in /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php:259 Stack trace: #0 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php(216): Twig_Lexer->lexExpression() #1 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php(115): Twig_Lexer->lexVar() #2 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(581): Twig_Lexer->tokenize('<form class="fo...', 'default/templat...') #3 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(671): Twig_Environment->tokenize('<form class="fo...', 'default/templat...') #4 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(396): Twig_Environment->compileSource('<form class="fo...', 'default/templat...') #5 /home1/belowcst/storage-files/modification/system/library/template in /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php on line 259
Last edited by straightlight on Tue Feb 25, 2020 4:08 am, edited 1 time in total.
Reason: Added code tags.

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by straightlight » Tue Feb 25, 2020 4:09 am

Please add the error messages between code tags. In addition, please post your TWIG file to find the source of the issue. Also ensure to post the one from your storage/modification/catalog/view/theme/<your_theme>/template/extension/payment/bluepay_redirect.twig file (if exists).

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by belowcost » Tue Feb 25, 2020 4:37 am

Code: Select all

<form class="form-horizontal" action="https://secure.bluepay.com/interfaces/bp10emu" method=POST>
    <fieldset id="payment">
        <legend>{{ text_credit_card }}</legend>
		{% if not existing_cards %}
			<div class="form-group">
				<label class="col-sm-2 control-label">{{ entry_card }}</label>
				<div class="col-sm-10">
					<label class="radio-inline">
						<input type="radio" name="new-existing" value="existing" checked="checked"/>
						{{ entry_card_existing }}
					</label>
					<label class="radio-inline">
						<input type="radio" name="new-existing" value="new" />
						{{ entry_card_new }}
					</label>
				</div>
			</div>
			<div id="card-existing">
				<div class="form-group required">
					<label class="col-sm-2 control-label" for="Token">{{ entry_cc_choice }}</label>
					<div class="col-sm-10">
						<select name="RRNO" class="form-control">
							{% for existing_card in existing_cards %}
								<option value="{{ existing_card.token }}">{{ text_card_type }} {{ existing_card.type, {{ text_card_digits }} {{ existing_card.digits }}, {{ text_card_expiry }} {{ existing_card.expiry }}</option>
							{% endfor %}
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label" for="input-cc-cvv2">{{ entry_cc_cvv2 }}</label>
					<div class="col-sm-10">
						<input type="text" name="CVCCVV2" value="" placeholder="{{ entry_cc_cvv2 }}" id="input-cc-cvv2" class="form-control" />
					</div>
				</div>
			</div>
			<div  style="display: none" id="card-new">
			{% else %}
				<div id="card-new">
				{% endif %}
                <div class="form-group required">
                    <label class="col-sm-2 control-label" for="input-cc-number">{{ entry_cc_number }}</label>
                    <div class="col-sm-10">
                        <input type="text" name="CC_NUM" value="" placeholder="{{ entry_cc_number }}" id="input-cc-number" class="form-control" />
                    </div>
                </div>
                <div class="form-group required">
                    <label class="col-sm-2 control-label" for="input-cc-expire-date">{{ entry_cc_expire_date }}</label>
                    <div class="col-sm-3">
                        <select name="CC_EXPIRES_MONTH" id="input-cc-expire-date" class="form-control">
							{% for month in months %}
								<option value="{{ month.value }}">{{ month.text }}</option>
							{% endfor %}
                        </select>
                    </div>
                    <div class="col-sm-3">
                        <select name="CC_EXPIRES_YEAR" class="form-control">
							% for year in year_expire %}
								<option value="{{ year.value }}">{{ year.text }}</option>
							{% endfor %}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-cc-cvv2">{{ entry_cc_cvv2 }}</label>
                    <div class="col-sm-10">
                        <input type="text" name="CVCCVV2" value="" placeholder="{{ entry_cc_cvv2 }}" id="input-cc-cvv2" class="form-control" />
                    </div>
                </div>
				{% if bluepay_redirect_card %}
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-cc-save">{{ entry_card_save }}</label>
						<div class="col-sm-2">
							<input id="input-cc-save" type="checkbox" name="CreateToken" value="1" />
						</div>
					</div>
				{% endif %}
            </div>
        </div>
        <div class="buttons">
            <div class="pull-right">
                <input type="button" value="{{ button_confirm }}" id="button-confirm" data-loading-text="{{ text_loading }}" class="btn btn-primary" />
            </div>
        </div>
    </fieldset>
</form>
<script type="text/javascript"><!--
$(document).ready(function() {
{% if existing_cards %}
	$('#card-new input').prop('disabled', true);
	$('#card-new input').prop('disabled', true);
	$('#card-new select').prop('disabled', true);
{% endif %}
	});
//--></script>
<script type="text/javascript"><!--
	$('input[name=\'new-existing\']').on('change', function() {
		if (this.value === 'existing') {
			$('#card-existing').show();
			$('#card-new').hide();
			$('#card-new input').prop('disabled', true);
			$('#card-new select').prop('disabled', true);
			$('#card-existing select').prop('disabled', false);
			$('#input-cc-cvv2').prop('disabled', false);
		} else {
			$('#card-existing').hide();
			$('#card-new').show();
			$('#card-new input').prop('disabled', false);
			$('#card-new select').prop('disabled', false);
			$('#card-existing select').prop('disabled', true);
			$('#card-existing input').prop('disabled', true);
		}
	});
//--></script>
<script type="text/javascript">
	$('#button-confirm').bind('click', function() {
		$.ajax({
			url: 'index.php?route=extension/payment/bluepay_redirect/send',
			type: 'post',
			data: $('#card-new :input[type=\'text\']:enabled, #card-new select:enabled, #card-new :input[type=\'checkbox\']:checked:enabled, #payment select:enabled, #card-existing :input:enabled'),
			dataType: 'json',
			cache: false,
			beforeSend: function() {
				$('#button-confirm').button('loading');
			},
			complete: function() {
				$('#button-confirm').button('reset');
			},
			success: function(json) {
				if (json['error']) {
					alert(json['error']);
				}

				if (json['redirect']) {
					location = json['redirect'];
				}
			}
		});
	});
//</script>
Last edited by straightlight on Tue Feb 25, 2020 5:11 am, edited 1 time in total.
Reason: Replaced quote with code tags.

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by straightlight » Tue Feb 25, 2020 5:15 am

Also replace:

Code: Select all

% for year in year_expire %}
								<option value="{{ year.value }}">{{ year.text }}</option>
							{% endfor %}
							
with:

Code: Select all

{% for year in year_expire %}
								<option value="{{ year.value }}">{{ year.text }}</option>
							{% endfor %}
Then, re-follow the FAQ.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by belowcost » Tue Feb 25, 2020 6:13 am

still the same

Code: Select all

Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected character "!" in "default/template/extension/payment/bluepay_redirect.twig" at line 86.' in /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php:284 Stack trace: #0 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php(216): Twig_Lexer->lexExpression() #1 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php(115): Twig_Lexer->lexVar() #2 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(581): Twig_Lexer->tokenize('<form class="fo...', 'default/templat...') #3 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(671): Twig_Environment->tokenize('<form class="fo...', 'default/templat...') #4 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(396): Twig_Environment->compileSource('<form class="fo...', 'default/templat...') #5 /home1/belowcst/storage-files/modification/system/librar in /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Lexer.php on line 284
Last edited by straightlight on Tue Feb 25, 2020 6:34 am, edited 1 time in total.
Reason: Added code tags.

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by straightlight » Tue Feb 25, 2020 6:35 am

Please use the code tag with your codes, not quote.

Ensure the change is also done in your storage/modification folder. Not only in your TWIG core file. After applying the change in your modifications, do not refresh the cache and see if that resolves the issue this time.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Tue Feb 25, 2020 7:15 am

Found another clue in that TWIG file.

Find:

Code: Select all

<div class="buttons">
            <div class="pull-right">
                <input type="button" value="{{ button_confirm }}" id="button-confirm" data-loading-text="{{ text_loading }}" class="btn btn-primary" />
            </div>
        </div>
add above:

Code: Select all

{% endif %}

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Tue Feb 25, 2020 7:17 am

Then, find:

Code: Select all

<script type="text/javascript">
(As is. You'll see there's one shorter than others)

Replace with:

Code: Select all

<script type="text/javascript"><!--
Then, at the bottom of the file, find:

Code: Select all

//</script>
replace with:

Code: Select all

//--></script>

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Tue Feb 25, 2020 7:22 am

Then, find:

Code: Select all

			<div style="display: none" id="card-new">			
			{% else %}
replace with:

Code: Select all

{% else %}
<div style="display: none" id="card-new">			

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by xxvirusxx » Tue Feb 25, 2020 7:47 am

And this:

Code: Select all

<option value="{{ existing_card.token }}">{{ text_card_type }} {{ existing_card.type, {{ text_card_digits }} {{ existing_card.digits }}, {{ text_card_expiry }} {{ existing_card.expiry }}</option>
To this

Code: Select all

<option value="{{ existing_card.token }}">{{ text_card_type }} {{ existing_card.type }}, {{ text_card_digits }} {{ existing_card.digits }}, {{ text_card_expiry }} {{ existing_card.expiry }}</option>

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by belowcost » Tue Feb 25, 2020 10:30 pm

Made all of those changes to bluepay_redirect.twig
(and didnt refresh or clear cache)

unsure of the update needed to /storage-files/modification/system/library/template
there are only 2 files in there. template.php and twig.php

here is the new error

Code: Select all

Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unknown "endif" tag in "default/template/extension/payment/bluepay_redirect.twig" at line 79.' in /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Parser.php:178 Stack trace: #0 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Parser.php(100): Twig_Parser->subparse(NULL, false) #1 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(619): Twig_Parser->parse(Object(Twig_TokenStream)) #2 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(671): Twig_Environment->parse(Object(Twig_TokenStream)) #3 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(396): Twig_Environment->compileSource('<form class="fo...', 'default/templat...') #4 /home1/belowcst/storage-files/modification/system/library/template/twig.php(59): Twig_Environment->loadTemplate('default/templat...') #5 /home1/belowcst/storage-files/modification/system/library/templa in /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Parser.php on line 178

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by straightlight » Tue Feb 25, 2020 10:34 pm

Replace back to:

Code: Select all

{% else %}
			<div style="display: none" id="card-new">			
							{% endif %}
				<div id="card-new">
and:

Code: Select all

{% endif %}
        <div class="buttons">
to:

Code: Select all

        <div class="buttons">
Then, reapply the FAQ step.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by belowcost » Wed Feb 26, 2020 3:20 am

i just did these fixes

tried without clearing cache
didnt work
so cleared and tried again
still doesnt work

Code: Select all

Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unknown "endif" tag in "default/template/extension/payment/bluepay_redirect.twig" at line 41.' in /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Parser.php:178 Stack trace: #0 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Parser.php(100): Twig_Parser->subparse(NULL, false) #1 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(619): Twig_Parser->parse(Object(Twig_TokenStream)) #2 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(671): Twig_Environment->parse(Object(Twig_TokenStream)) #3 /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Environment.php(396): Twig_Environment->compileSource('<form class="fo...', 'default/templat...') #4 /home1/belowcst/storage-files/modification/system/library/template/twig.php(59): Twig_Environment->loadTemplate('default/templat...') #5 /home1/belowcst/storage-files/modification/system/library/templa in /home1/belowcst/public_html/bbhardware/system/library/template/Twig/Parser.php on line 178
Last edited by straightlight on Wed Feb 26, 2020 3:22 am, edited 1 time in total.
Reason: Added code tags.

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by straightlight » Wed Feb 26, 2020 3:22 am

The entire file should look like this:

Code: Select all

<form class="form-horizontal" action="https://secure.bluepay.com/interfaces/bp10emu" method=POST>
    <fieldset id="payment">
        <legend>{{ text_credit_card }}</legend>
		{% if not existing_cards %}
			<div class="form-group">
				<label class="col-sm-2 control-label">{{ entry_card }}</label>
				<div class="col-sm-10">
					<label class="radio-inline">
						<input type="radio" name="new-existing" value="existing" checked="checked"/>
						{{ entry_card_existing }}
					</label>
					<label class="radio-inline">
						<input type="radio" name="new-existing" value="new" />
						{{ entry_card_new }}
					</label>
				</div>
			</div>
			<div id="card-existing">
				<div class="form-group required">
					<label class="col-sm-2 control-label" for="Token">{{ entry_cc_choice }}</label>
					<div class="col-sm-10">
						<select name="RRNO" class="form-control">
							{% for existing_card in existing_cards %}
								<option value="{{ existing_card.token }}">{{ text_card_type }} {{ existing_card.type }}, {{ text_card_digits }} {{ existing_card.digits }}, {{ text_card_expiry }} {{ existing_card.expiry }}</option>
							{% endfor %}
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label" for="input-cc-cvv2">{{ entry_cc_cvv2 }}</label>
					<div class="col-sm-10">
						<input type="text" name="CVCCVV2" value="" placeholder="{{ entry_cc_cvv2 }}" id="input-cc-cvv2" class="form-control" />
					</div>
				</div>
			</div>
			{% else %}
			<div style="display: none" id="card-new">			
				<div id="card-new">
			{% endif %}
                <div class="form-group required">
                    <label class="col-sm-2 control-label" for="input-cc-number">{{ entry_cc_number }}</label>
                    <div class="col-sm-10">
                        <input type="text" name="CC_NUM" value="" placeholder="{{ entry_cc_number }}" id="input-cc-number" class="form-control" />
                    </div>
                </div>
                <div class="form-group required">
                    <label class="col-sm-2 control-label" for="input-cc-expire-date">{{ entry_cc_expire_date }}</label>
                    <div class="col-sm-3">
                        <select name="CC_EXPIRES_MONTH" id="input-cc-expire-date" class="form-control">
							{% for month in months %}
								<option value="{{ month.value }}">{{ month.text }}</option>
							{% endfor %}
                        </select>
                    </div>
                    <div class="col-sm-3">
                        <select name="CC_EXPIRES_YEAR" class="form-control">
							{% for year in year_expire %}
								<option value="{{ year.value }}">{{ year.text }}</option>
							{% endfor %}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-cc-cvv2">{{ entry_cc_cvv2 }}</label>
                    <div class="col-sm-10">
                        <input type="text" name="CVCCVV2" value="" placeholder="{{ entry_cc_cvv2 }}" id="input-cc-cvv2" class="form-control" />
                    </div>
                </div>
				{% if bluepay_redirect_card %}
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-cc-save">{{ entry_card_save }}</label>
						<div class="col-sm-2">
							<input id="input-cc-save" type="checkbox" name="CreateToken" value="1" />
						</div>
					</div>
				{% endif %}
            </div>
        </div>
        <div class="buttons">
            <div class="pull-right">
                <input type="button" value="{{ button_confirm }}" id="button-confirm" data-loading-text="{{ text_loading }}" class="btn btn-primary" />
            </div>
        </div>
    </fieldset>
</form>
<script type="text/javascript"><!--
$(document).ready(function() {
{% if existing_cards %}
	$('#card-new input').prop('disabled', true);
	$('#card-new input').prop('disabled', true);
	$('#card-new select').prop('disabled', true);
{% endif %}
	});
//--></script>
<script type="text/javascript"><!--
	$('input[name=\'new-existing\']').on('change', function() {
		if (this.value === 'existing') {
			$('#card-existing').show();
			$('#card-new').hide();
			$('#card-new input').prop('disabled', true);
			$('#card-new select').prop('disabled', true);
			$('#card-existing select').prop('disabled', false);
			$('#input-cc-cvv2').prop('disabled', false);
		} else {
			$('#card-existing').hide();
			$('#card-new').show();
			$('#card-new input').prop('disabled', false);
			$('#card-new select').prop('disabled', false);
			$('#card-existing select').prop('disabled', true);
			$('#card-existing input').prop('disabled', true);
		}
	});
//--></script>
<script type="text/javascript"><!--
	$('#button-confirm').bind('click', function() {
		$.ajax({
			url: 'index.php?route=extension/payment/bluepay_redirect/send',
			type: 'post',
			data: $('#card-new :input[type=\'text\']:enabled, #card-new select:enabled, #card-new :input[type=\'checkbox\']:checked:enabled, #payment select:enabled, #card-existing :input:enabled'),
			dataType: 'json',
			cache: false,
			beforeSend: function() {
				$('#button-confirm').button('loading');
			},
			complete: function() {
				$('#button-confirm').button('reset');
			},
			success: function(json) {
				if (json['error']) {
					alert(json['error']);
				}

				if (json['redirect']) {
					location = json['redirect'];
				}
			}
		});
	});
//--></script>

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by belowcost » Wed Feb 26, 2020 4:48 am

thx further than before, no cart errors, now a processing error

actually enter credit card details, cvv, etc., and click submit, it pops up an error

MISSING : Missing CC_NUM

Active Member

Posts

Joined
Mon Sep 26, 2011 1:54 am

Post by straightlight » Wed Feb 26, 2020 5:09 am

In catalog/controller/extension/payment/bluepay_redirect.php file,

find:

Code: Select all

$post_data = $this->request->post;
add below:

Code: Select all

if (isset($post_data['CC_NUM'])) {
			$post_data['CC_NUM'] = substr(str_replace(' ', '', $post_data['CC_NUM']), -4, 4);
			
			$this->log->write('BLUEPAY DEBUG :: ' . print_r($post_data, true));
		}
Redo the test. Then, see the error logs in your admin - > systems - > maintenance - > error logs page with a sentence beginning with: BLUEPAY DEBUG .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 5 guests