Billhighway Cloud API

<back to all web services

SalesForceCreditCardVerify

The following routes are available for this service:
POST/payments/CreditCard/VerifyPerforms 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.

export class CreditCardVerifyReply implements IHaveErrorField
{
    public UniqueId?: string;
    public ErrorCode?: number;
    public ErrorMessage?: string;
    public CardRef?: string;
    public IsError?: boolean;

    public constructor(init?: Partial<CreditCardVerifyReply>) { (Object as any).assign(this, init); }
}

export class SalesForceCreditCardVerify
{
    public UniqueId?: string;
    public ClientId?: number;
    public GroupId?: string;
    public UserId?: string;
    public BhUserId?: number;
    public Location?: string;
    public CurrencyCode?: string;
    public NameOnCard?: string;
    public Address1?: string;
    public Address2?: string;
    public City?: string;
    public State?: string;
    public PostalCode?: string;
    public VerifyPostalCode?: boolean;
    public Country?: string;
    public CardType?: string;
    public CardReferenceOrCardNumber?: string;
    public ExpMonth?: number;
    public ExpYear?: number;
    public Cvv?: string;
    public Amount?: number;
    public ChapAndUser?: string;
    public Description?: string;
    public PayLinkID?: number;

    public constructor(init?: Partial<SalesForceCreditCardVerify>) { (Object as any).assign(this, init); }
}

TypeScript SalesForceCreditCardVerify DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
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: text/jsv
Content-Length: length

{
	UniqueId: String,
	ErrorCode: 0,
	ErrorMessage: String,
	CardRef: String,
	IsError: False
}