AuthorizeNet / sample-code-ruby

This repository contains working code samples which demonstrate ruby integration with the Authorize.Net API
MIT License
24 stars 58 forks source link

Create customer payment example is not working #39

Closed miguelsosa closed 7 years ago

miguelsosa commented 7 years ago

When I try the CustomerProfiles/create-customer-profile.rb example I get:

Failed to create a new customer payment profile: The record cannot be found.

The element 'paymentProfiles' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' cannot contain text. List of possible elements expected: 'customerType, billTo, payment, driversLicense, taxId, defaultPaymentProfile' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. CustomerProfiles/create-customer-profile.rb:36:in `create_customer_profile': Failed to create a new customer profile. (RuntimeError)

miguelsosa commented 7 years ago

rspecs are failing because of this:

1) SampleCode Testing should be able to run all Customer Profile sample code
     Failure/Error: response = create_customer_profile()

     RuntimeError:
       Failed to create a new customer profile.
     # ./CustomerProfiles/create-customer-profile.rb:36:in `create_customer_profile'
     # ./spec/sample_code_spec.rb:55:in `block (2 levels) in <top (required)>'
miguelsosa commented 7 years ago

This si fixed by sdk-ruby pull request 94 (https://github.com/AuthorizeNet/sdk-ruby/pull/94).