Post by darth_danny » Thu Oct 13, 2016 3:02 pm

Hi,

I created a custom payment method which I successfully installed and configured in the admin end. When I was testing a purchase and reached the Payment Method section of the checkout, the following errors are displayed.
Warning: Invalid argument supplied for foreach() in localhost/test.opencart/system/storage/modification/system/engine/loader.php on line 53Notice: Undefined property: Proxy::getMethod in localhost/test.opencart/catalog/controller/checkout/payment_method.php on line 53
I am not sure which part of my code could be causing the error.

Uploaded is the source I used.

Attachments

Catalog controller

Admin controller

Last edited by darth_danny on Thu Oct 13, 2016 4:21 pm, edited 1 time in total.

New member

Posts

Joined
Wed Jul 27, 2016 5:41 pm

Post by OSWorX » Thu Oct 13, 2016 4:00 pm

darth_danny wrote:I am not sure which part of my code could be causing the error.
And we are not sure which code part you mean without knowing the code.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by darth_danny » Thu Oct 13, 2016 4:22 pm

Updated original. Added source code used

New member

Posts

Joined
Wed Jul 27, 2016 5:41 pm

Post by OSWorX » Thu Oct 13, 2016 5:16 pm

Cannot see an error.
Which shopversion is used?

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by darth_danny » Thu Oct 13, 2016 5:39 pm

Opencart 2.3.0.2

New member

Posts

Joined
Wed Jul 27, 2016 5:41 pm

Post by OSWorX » Thu Oct 13, 2016 6:00 pm

darth_danny wrote:Opencart 2.3.0.2
Then it is wrong, the path has changed to extension.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by darth_danny » Thu Oct 13, 2016 6:07 pm

Could u be abit more specific. When updating from from 2.2.0.0 to 2.3.0.2 had made the adjustments to the extension/payment ... Don't see which path I could have left out

New member

Posts

Joined
Wed Jul 27, 2016 5:41 pm

Post by OSWorX » Thu Oct 13, 2016 6:14 pm

darth_danny wrote:Could u be abit more specific. When updating from from 2.2.0.0 to 2.3.0.2 had made the adjustments to the extension/payment ... Don't see which path I could have left out
Sorry, but you are creating a payment module, one of the most sensible parts of a shop.
Then you should know what you are doing, or hire one who knows the job.

For example, you are using:

Code: Select all

class ModelPaymentCustomPayment extends Model {
but only that part should be

Code: Select all

class ModelExtensionPaymentCustomPayment extends Model {
I recommend you check your 'custom' mod again and check the differences between 2.2.x and 2.3.x

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 5 guests