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.
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BH.CloudAPI.Common4.DTO.SalesForce

Namespace Global

    Namespace BH.CloudAPI.Common4.DTO.SalesForce

        Public Partial Class CreditCardVerifyReply
            Implements IHaveErrorField
            Public Overridable Property UniqueId As String
            Public Overridable Property ErrorCode As Integer
            Public Overridable Property ErrorMessage As String
            Public Overridable Property CardRef As String
            Public Overridable Property IsError As Boolean
        End Class

        Public Partial Class SalesForceCreditCardVerify
            Public Overridable Property UniqueId As String
            Public Overridable Property ClientId As Integer
            Public Overridable Property GroupId As String
            Public Overridable Property UserId As String
            Public Overridable Property BhUserId As Integer
            Public Overridable Property Location As String
            Public Overridable Property CurrencyCode As String
            Public Overridable Property NameOnCard As String
            Public Overridable Property Address1 As String
            Public Overridable Property Address2 As String
            Public Overridable Property City As String
            Public Overridable Property State As String
            Public Overridable Property PostalCode As String
            Public Overridable Property VerifyPostalCode As Boolean
            Public Overridable Property Country As String
            Public Overridable Property CardType As String
            Public Overridable Property CardReferenceOrCardNumber As String
            Public Overridable Property ExpMonth As Integer
            Public Overridable Property ExpYear As Integer
            Public Overridable Property Cvv As String
            Public Overridable Property Amount As Decimal
            Public Overridable Property ChapAndUser As String
            Public Overridable Property Description As String
            Public Overridable Property PayLinkID As Integer
        End Class
    End Namespace
End Namespace

VB.NET SalesForceCreditCardVerify DTOs

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

HTTP + CSV

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

{"UniqueId":"String","ErrorCode":0,"ErrorMessage":"String","CardRef":"String","IsError":false}