Advertisement:

Author Topic: Payment Plugin not working correctly  (Read 4836 times)

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Payment Plugin not working correctly
« on: August 24, 2013, 02:41:05 am »
Hi everyone!  :)

I am testing Payment Plugin 2.0 with Osc 3.2.0 and it installs correctly, even sets up correctly, but apparently it does not work as it should. I am only using regular portion of the plugin (not the Paypal part) and just for testing activated Pay per post ads, but users regularly post visible ads as if plugin does not exist. Also, when user logs in, in the Listings payment status there is indeed a link Pay for this item which leads to a page which says In order to make visible your ad to other users, it's required to pay a fee, but the ad is already very much visible to anyone. Also, this page is a dead-end, it does not have any buttons to press in order to complete the payment - is this normal (e.g. admin interaction is needed)?

Any ideas?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Payment Plugin not working correctly
« Reply #1 on: August 26, 2013, 10:35:35 am »
Hi dev101,

In order to make it work, you need to configure it correctly.

Did you set a price per category?

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Payment Plugin not working correctly
« Reply #2 on: August 26, 2013, 01:00:53 pm »
Hi _CONEJO,

I believe I have set it up correctly (version 20130725170919_52_plugins_payment_2.0.0.zip), checked all the fields several times -- but I did not set all per category prices, though, at first they were empty, later entered only for couple, and even later every field was filled with some values (0 for first column and 1-2 for second). But, since it wasn't working, for the time being I have uninstalled and removed the plugin, just in case, and now when I try to install it I get this error:

Quote
Plugin couldn't be installed because of: Error importSQL::ModelPayment
payment/struct.sql

I have checked the database, it appears a lot of oc_t_payment tables were left empty, so I deleted all of them, and now it "works" again. I mean, its just installed, but still not working correctly - ads are freely available.

Edit: maybe it is important, maybe not: I am testing in localhost, and disabled user verification for their ads, also I have manually activated first several ads from admin panel (when I still had checked option for validation). I don't think this should interfere, but just in case to be noted.

I am also curious abot this text in the screenshot (Paypal stays on top -- don't know if this is a bug or not):


Also, another important thing: in user panel Listings payment status page is in Bender theme, which is a different theme style then the rest of the site. Before I plunge into all the changes, is there a simpler way to correct this?
« Last Edit: August 26, 2013, 01:13:50 pm by dev101 »

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Payment Plugin not working correctly
« Reply #3 on: August 28, 2013, 02:27:52 am »
Hi _CONEJO, I realized that you are the author of this plugin. So, can you tell me did you created this plugin to be used without Paypal at all? Trouble is PP is not fully available in my country, so I need alternative ways for payments.

Thanks!

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Payment Plugin not working correctly
« Reply #4 on: August 28, 2013, 10:30:36 am »
Yes, next version has Paypal, Braintree, Stripe, Blockchain and CoinJar as available methods of payments

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Payment Plugin not working correctly
« Reply #5 on: August 28, 2013, 04:12:32 pm »
Thank you for clarifying it. By any chance, do you have any desire or plans developing a simpler, conventional payment plugin (e.g. where admin will control every amount of credit individually to each user, 'credit' will be used in user's CP to pay options and plans etc, and actual payments would be carried away by other methods - by bank etc.)? Reason is already explained in my earlier post. Thanks!

Cesar12

  • Newbie
  • *
  • Posts: 9
Re: Payment Plugin not working correctly
« Reply #6 on: October 11, 2013, 07:17:34 am »
hi, dev101

I have the same bender problem (Listings payment status) please let me know how did you fix it, I new on osclass.
Itry to fix it but I couldn´t do it.
I use minimalist Theme

Cesar
 

Hi _CONEJO,

I believe I have set it up correctly (version 20130725170919_52_plugins_payment_2.0.0.zip), checked all the fields several times -- but I did not set all per category prices, though, at first they were empty, later entered only for couple, and even later every field was filled with some values (0 for first column and 1-2 for second). But, since it wasn't working, for the time being I have uninstalled and removed the plugin, just in case, and now when I try to install it I get this error:

Quote
Plugin couldn't be installed because of: Error importSQL::ModelPayment
payment/struct.sql

I have checked the database, it appears a lot of oc_t_payment tables were left empty, so I deleted all of them, and now it "works" again. I mean, its just installed, but still not working correctly - ads are freely available.

Edit: maybe it is important, maybe not: I am testing in localhost, and disabled user verification for their ads, also I have manually activated first several ads from admin panel (when I still had checked option for validation). I don't think this should interfere, but just in case to be noted.

I am also curious abot this text in the screenshot (Paypal stays on top -- don't know if this is a bug or not):


Also, another important thing: in user panel Listings payment status page is in Bender theme, which is a different theme style then the rest of the site. Before I plunge into all the changes, is there a simpler way to correct this?

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Payment Plugin not working correctly
« Reply #7 on: October 11, 2013, 11:37:12 am »
Hi Cesar12,

I am afraid I do not use Payment plugin anymore (reasons explained above) and I didn't dwell into fixing Bender theme issue. _CONEJO already explained why is this happening in the topic you already posted here:

http://forums.osclass.org/plugin-payments/payment-switching-from-modern-to-bender-and-back-again/

dev101

dinocarrozzo

  • Newbie
  • *
  • Posts: 8
Re: Payment Plugin not working correctly
« Reply #8 on: November 10, 2013, 01:41:18 am »
i also have the same error message when i try to install this plug in.:
Plugin couldn't be installed because of: Error importSQL::ModelPayment
payment/struct.sql

how can i resolve that?
thanks

serjuc11111

  • Hero Member
  • *****
  • Posts: 814
Re: Payment Plugin not working correctly
« Reply #9 on: November 30, 2013, 06:26:11 pm »
try to delete all the table from your database and then try to install again!