Announcement

Collapse
No announcement yet.

OPAY probme in v9

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    OPAY probme in v9

    Hi folks,

    One of my clients is moving a store to v9, and we're having problems with a custom payment module that I wrote for them, which worked fine under v5. This is a B2B store that accepts P.O. payments from authorized customers who've been set up in advance by a store manager. The only payment field on the OPAY page is an "I agree to your terms" checkbox. If a customer doesn't check the box, they should be returned to the OPAY page with an error message. But instead, the store gets a fatal error:

    Error Code: MER-TUI-MGR-00023
    Description: Item 'payment' threw exception 'invalid_payment_method' during initialization
    Other Information: One or more required fields were not filled out correctly.

    Does anyone know why this is happening? I took a look at some LSK code, but the handling of this exception is rather complex.
    Also, there are a couple of new components in v9 related to payment fields; is there any documentation on these?

    Thanks --
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    #2
    Re: OPAY probme in v9

    Two things to check:

    1. Is there code in your module that throws the invalid_payment_method exception?
    2. Does the error go away if you unassign the paymentmethod item from the OPAY page?

    Comment


      #3
      Re: OPAY probme in v9

      Originally posted by burch View Post
      Two things to check:

      1. Is there code in your module that throws the invalid_payment_method exception?
      2. Does the error go away if you unassign the paymentmethod item from the OPAY page?
      Hi Burch,

      1. Not explicitly. My module just uses the standard API functions such as PaymentModule_Payment_Fields, PaymentModule_Payment_Invalid, PaymentModule_Payment_Validate, etc.

      2. I just tried that, and I'm still getting the same error.

      P.S. In case it matters, this module uses API version 5.00.

      Thanks --
      Last edited by Kent Multer; 07-28-15, 09:28 AM.
      Kent Multer
      Magic Metal Productions
      http://TheMagicM.com
      * Web developer/designer
      * E-commerce and Miva
      * Author, The Official Miva Web Scripting Book -- available on-line:
      http://www.amazon.com/exec/obidos/IS...icmetalproducA

      Comment


        #4
        Re: OPAY probme in v9

        It'd probably be a good idea to get a ticket opened so we can have someone in our QA department do some diagnostic work then.

        Comment


          #5
          Re: OPAY probme in v9

          OK, I'll do that shortly. There seem to be some other problems with the store; maybe I'll try to clean some of that up first.

          Related to that, I just noticed that there are two customer accounts with the same lost-password email. Aren't those supposed to be unique in v9?

          Thanks --
          Kent Multer
          Magic Metal Productions
          http://TheMagicM.com
          * Web developer/designer
          * E-commerce and Miva
          * Author, The Official Miva Web Scripting Book -- available on-line:
          http://www.amazon.com/exec/obidos/IS...icmetalproducA

          Comment

          Working...
          X