Post by alex067 » Thu Sep 07, 2017 1:48 pm

Just curious if this problem is specific to use, to opencart, or in general.

Paypal express checkout button is missplaced to the lefthand side, also a bigger problem is that when you click the paypal sign to check out, the window opens up momentarily and closes again

Does anyone else have this issue?

New member

Posts

Joined
Wed Jul 12, 2017 9:50 am

Post by straightlight » Wed Nov 15, 2017 5:48 am

OC version not posted. Switch back to the default theme and see if you can resolve this 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 ashisharyal64 » Wed Nov 15, 2017 11:19 pm

Im on OC 3.0.2.0. I have setup braintree as per the instruction screen. got everything ready.
But when i try to process payments, paypal popup button appears and disappears and when i try to process payments through credit card
i get the following messages "There was an error processing your order. Please contact the shop administrator for help. braintree opencart"
HELP!!! :bang: ???

Newbie

Posts

Joined
Thu Feb 16, 2017 2:52 pm

Legendary Member

Posts

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

Post by straightlight » Wed Nov 15, 2017 11:29 pm

Post updated.

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 ashisharyal64 » Wed Nov 15, 2017 11:31 pm

Yes Sir!
Im updating those files as per your instructions. I will keep you updated of the progress!

Newbie

Posts

Joined
Thu Feb 16, 2017 2:52 pm

Post by straightlight » Wed Nov 15, 2017 11:32 pm

In addition, ensure to uninstall both modules:

- braintree payment (take screenshot to keep your form configuration)
- braintree button module

before making these modifications then to reinstall both.

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 ashisharyal64 » Thu Nov 16, 2017 12:03 am

Here is what i did.
step 1: disabled and uninstalled the modules.
Step 2: replaced all the files as per instruction.
step 3: cleared cache
Step 4: installed braintree with appropriate settings
Step5: added demo item to cart
step 6: tried checking out with both paypal express and credit card
Step 7: faced same issue.
:'(
Any other advices? im all ears.

Thank you

Newbie

Posts

Joined
Thu Feb 16, 2017 2:52 pm

Post by ashisharyal64 » Thu Nov 16, 2017 12:06 am

Update::
this is what i have caught on log
2017-11-15 15:58:13 - PHP Notice: Trying to get property of non-object in /home/krishavco/stage/public/catalog/controller/extension/payment/pp_braintree.php on line 290

Newbie

Posts

Joined
Thu Feb 16, 2017 2:52 pm

Post by straightlight » Thu Nov 16, 2017 1:13 am

Can you post what is on line 290 of that file?

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 » Thu Nov 16, 2017 1:19 am

One file I did forgot to mentioned for the replacement:

- https://github.com/opencart/opencart/bl ... ayment.php
- https://github.com/opencart/opencart/bl ... ethod.twig

Note: Post updated above and no need to uninstall modules to replace this particular file.

Since TWIG files are involved in the process, clear all caches once you have replaced all the required files.

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 ashisharyal64 » Thu Nov 16, 2017 1:00 pm

Hello,
I did update the files as you suggested but no luck. Still same issue.
I have this error on my log
2017-11-15 15:58:13 - PHP Notice: Trying to get property of non-object in /home/krishavco/stage/public/catalog/controller/extension/payment/pp_braintree.php on line 290
i have attached the related file. if this helps

Newbie

Posts

Joined
Thu Feb 16, 2017 2:52 pm

Post by straightlight » Thu Nov 16, 2017 9:57 pm

Can you post that actual line number of that file?

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 ashisharyal64 » Thu Nov 16, 2017 10:08 pm

below is what written in line number 290 of that file
switch ($transaction->transaction->status) {

Please let me know if this is not what you were looking for or i miss understood what you were trying to say.
Thank you very much.

Newbie

Posts

Joined
Thu Feb 16, 2017 2:52 pm

Post by straightlight » Thu Nov 16, 2017 10:11 pm

Those are the lines: 356 and 1485. You did not properly replace those files. Otherwise, 290 should be an empty line according to what it describes on Github from the links posted above.

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 ashisharyal64 » Thu Nov 16, 2017 10:16 pm

Let me redo it!

Newbie

Posts

Joined
Thu Feb 16, 2017 2:52 pm

Post by ashisharyal64 » Thu Nov 16, 2017 10:31 pm

replaced the file properly,
now i have the same error and the log has registered this
2017-11-16 14:28:39 - PHP Notice: Trying to get property of non-object in /public/catalog/controller/extension/payment/pp_braintree.php on line 356

Ashish

Newbie

Posts

Joined
Thu Feb 16, 2017 2:52 pm

Post by straightlight » Thu Nov 16, 2017 10:52 pm

ashisharyal64 wrote:
Thu Nov 16, 2017 10:31 pm
replaced the file properly,
now i have the same error and the log has registered this
2017-11-16 14:28:39 - PHP Notice: Trying to get property of non-object in /public/catalog/controller/extension/payment/pp_braintree.php on line 356

Ashish
But with a different and valid line number, this time. At this location, your order did succeeded from PayPal Braintree. Although, the issue seem to be with Opencart.

Let's do some troubleshooting.

Right above:

Code: Select all

switch ($transaction->transaction->status) {
of line 356, add:

Code: Select all

$this->load->model('extension/payment/pp_braintree');

$this->model_extension_payment_pp_braintree->log($transaction);
Redo a transaction. Then, in your admin - > extensions - > extensions - > payments (x) - > PayPal Braintree page, see the logs tab noticing the transaction results. Please provide it here by replacing personal information with Xs in the array.

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 ashisharyal64 » Thu Nov 16, 2017 11:13 pm

made the changes as you explained above the line with new info.
tried to create demo purchase after that
Went to admin - > extensions - > extensions - > payments (x) - > PayPal Braintree
Now, in the paypal braintree page, i have following tabs
Settings, order statuses, 3-D secure, Vault, Paypal, Transaction search.
There is no logs tab :(

The log page is reporting same the error in 358 as i have added the new lines.

Newbie

Posts

Joined
Thu Feb 16, 2017 2:52 pm

Post by straightlight » Thu Nov 16, 2017 11:19 pm

In your system/logs folder on your file server, see for a log file named: braintree.log and look for the most recent event with the date and time regarding the transaction results. In addition, ensure to have enable the debug mode in the admin payment module braintree form.

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: SohBH and 272 guests