Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Customer Profile from a Transaction customerProfileId undefined method `to_xml' #180

Copy link
Copy link
@ianneub

Description

@ianneub
Issue body actions

I am getting this error:

#<NoMethodError: undefined method `to_xml' for "1969742758":String>

When sending a CreateCustomerProfileFromTransactionRequest like so:

transaction = AuthorizeNet::API::Transaction.new(login_id, tx_key, :gateway => gateway)
	
request = CreateCustomerProfileFromTransactionRequest.new
request.customerProfileId = "1234567"
request.transId = "123456"

res = transaction.create_customer_profile_from_transaction(request)

I believe the issue is here:
https://github.com/AuthorizeNet/sdk-ruby/blob/master/lib/authorize_net/api/schema.rb#L3465

Should this not have a type setting of NumericStringsType and instead be nothing? According to the API docs this is a simple string.

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.