Skip to content

Getting issue with create_subscription TypeError: function takes 3 arguments plus optional tzinfo (8 given) #160

Open
@vinod-k-dev

Description

@vinod-k-dev

ref => https://github.com/AuthorizeNet/sample-code-python/blob/master/RecurringBilling/create-subscription.py
I'm getting issue with create_subscription method when I calling

Creating the request

request = apicontractsv1.ARBCreateSubscriptionRequest()
request.merchantAuthentication = merchantAuth
request.subscription = subscription

# Creating and executing the controller
controller = ARBCreateSubscriptionController(request)
controller.execute()

After execute getting error 
lib/python3.10/site-packages/pyxb/binding/datatypes.py", line 662, in __new__
raise TypeError('function takes %d arguments plus optional tzinfo (%d given)' % (len(cls._ValidFields), len(args)))

TypeError: function takes 3 arguments plus optional tzinfo (8 given)

Can anyone help
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy