cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

Authorize.NET C# SDK Bugs

Hey Guys,

Can you fix at least the following bugs in your SDK:

  1. AuthorizeNet.CustomerGateway.AddCreditCard(...)


    Replace:


    card.expirationDate = string.Format("{0}-{1}", expirationYear.ToString(), expirationMonth.ToString());

     With:

     

    card.expirationDate = String.Format(expirationYear > 99 ? "{0:D2}-{1:D4}" : "{0:D2}-{1:D2}", expirationMonth, expirationYear);

  2. AuthorizeNet.CustomerGateway.UpdateCustomer(...)

    After:

    var req = new updateCustomerProfileRequest();


    Add:

    req.profile = new customerProfileExType();
  3. AuthorizeNet.PaymentProfile.ToAPI(...)

    After:

    result.customerPaymentProfileId = this.ProfileID;

    Add:
    result.payment = new paymentType();


Web Apps Architect | .NET Engineer
koistya
Member
Who Me Too'd this topic