| POST | /payments/CreditCard/Verify | Performs 0 dollar verify of a credit card. | Validates the credit card type, expiration date and performs credit card address verification against the credit card networks. |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using BH.CloudAPI.Common4.DTO.SalesForce;
namespace BH.CloudAPI.Common4.DTO.SalesForce
{
public partial class CreditCardVerifyReply
: IHaveErrorField
{
public virtual string UniqueId { get; set; }
public virtual int ErrorCode { get; set; }
public virtual string ErrorMessage { get; set; }
public virtual string CardRef { get; set; }
public virtual bool IsError { get; set; }
}
public partial class SalesForceCreditCardVerify
{
public virtual string UniqueId { get; set; }
public virtual int ClientId { get; set; }
public virtual string GroupId { get; set; }
public virtual string UserId { get; set; }
public virtual int BhUserId { get; set; }
public virtual string Location { get; set; }
public virtual string CurrencyCode { get; set; }
public virtual string NameOnCard { get; set; }
public virtual string Address1 { get; set; }
public virtual string Address2 { get; set; }
public virtual string City { get; set; }
public virtual string State { get; set; }
public virtual string PostalCode { get; set; }
public virtual bool VerifyPostalCode { get; set; }
public virtual string Country { get; set; }
public virtual string CardType { get; set; }
public virtual string CardReferenceOrCardNumber { get; set; }
public virtual int ExpMonth { get; set; }
public virtual int ExpYear { get; set; }
public virtual string Cvv { get; set; }
public virtual decimal Amount { get; set; }
public virtual string ChapAndUser { get; set; }
public virtual string Description { get; set; }
public virtual int PayLinkID { get; set; }
}
}
C# SalesForceCreditCardVerify DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /payments/CreditCard/Verify HTTP/1.1
Host: devapi.billhighway.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"UniqueId":"String","ClientId":0,"GroupId":"String","UserId":"String","BhUserId":0,"Location":"String","CurrencyCode":"String","NameOnCard":"String","Address1":"String","Address2":"String","City":"String","State":"String","PostalCode":"String","VerifyPostalCode":false,"Country":"String","CardType":"String","CardReferenceOrCardNumber":"String","ExpMonth":0,"ExpYear":0,"Cvv":"String","Amount":0,"ChapAndUser":"String","Description":"String","PayLinkID":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"UniqueId":"String","ErrorCode":0,"ErrorMessage":"String","CardRef":"String","IsError":false}