POST | /payment/billmate/v1/ipncallback | IPN callback for Qvickly checkout 1.0 | IPN callback for Qvickly checkout 1.0 |
---|
export class IpnCallBackResponse
{
public Message: string;
public Success: boolean;
public constructor(init?: Partial<IpnCallBackResponse>) { (Object as any).assign(this, init); }
}
export class ServerDataResponse
{
public HTTP_HOST: string;
public HTTP_CONNECTION: string;
public HTTP_CACHE_CONTROL: string;
public HTTP_ACCEPT: string;
public HTTP_USER_AGENT: string;
public HTTP_ACCEPT_ENCODING: string;
public HTTP_ACCEPT_LANGUAGE: string;
public PATH: string;
public SERVER_SOFTWARE: string;
public SERVER_NAME: string;
public SERVER_ADDR: string;
public SERVER_PORT: string;
public REMOTE_ADDR: string;
public REMOTE_PORT: string;
public GATEWAY_INTERFACE: string;
public SERVER_PROTOCOL: string;
public REQUEST_METHOD: string;
public QUERY_STRING: string;
public REQUEST_TIME: string;
public constructor(init?: Partial<ServerDataResponse>) { (Object as any).assign(this, init); }
}
export class CredentialsResponse
{
public hash: string;
public id: string;
public version: string;
public client: string;
public serverdata: ServerDataResponse;
public time: string;
public test: string;
public language: string;
public constructor(init?: Partial<CredentialsResponse>) { (Object as any).assign(this, init); }
}
export class QvicklyIpnCallbackResponseData
{
public number: string;
public status: string;
public orderid: string;
public url: string;
public constructor(init?: Partial<QvicklyIpnCallbackResponseData>) { (Object as any).assign(this, init); }
}
export class QvicklyCheckoutIpnCallBack implements ICompany
{
/** @description The company id, if empty will use the company id for the user you are logged in with. */
// @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")
public CompanyId?: string;
/** @description Internal reference id (Could be booking, could be Article..) */
// @ApiMember(Description="Internal reference id (Could be booking, could be Article..)")
public BookingId: string;
/** @description The payment credentials. */
// @ApiMember(Description="The payment credentials.")
public credentials: CredentialsResponse;
/** @description The payment ipn callback data. */
// @ApiMember(Description="The payment ipn callback data.")
public data: QvicklyIpnCallbackResponseData;
/** @description Article type (Could be Service, rebate code types, etc.. */
// @ApiMember(Description="Article type (Could be Service, rebate code types, etc..", IsRequired=true)
public ArticleTypeId: number;
public constructor(init?: Partial<QvicklyCheckoutIpnCallBack>) { (Object as any).assign(this, init); }
}
TypeScript QvicklyCheckoutIpnCallBack DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /payment/billmate/v1/ipncallback HTTP/1.1
Host: testapi.bokamera.se
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<QvicklyCheckoutIpnCallBack xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
<ArticleTypeId>0</ArticleTypeId>
<BookingId>String</BookingId>
<CompanyId>00000000-0000-0000-0000-000000000000</CompanyId>
<credentials>
<client>String</client>
<hash>String</hash>
<id>String</id>
<language>String</language>
<serverdata>
<GATEWAY_INTERFACE>String</GATEWAY_INTERFACE>
<HTTP_ACCEPT>String</HTTP_ACCEPT>
<HTTP_ACCEPT_ENCODING>String</HTTP_ACCEPT_ENCODING>
<HTTP_ACCEPT_LANGUAGE>String</HTTP_ACCEPT_LANGUAGE>
<HTTP_CACHE_CONTROL>String</HTTP_CACHE_CONTROL>
<HTTP_CONNECTION>String</HTTP_CONNECTION>
<HTTP_HOST>String</HTTP_HOST>
<HTTP_USER_AGENT>String</HTTP_USER_AGENT>
<PATH>String</PATH>
<QUERY_STRING>String</QUERY_STRING>
<REMOTE_ADDR>String</REMOTE_ADDR>
<REMOTE_PORT>String</REMOTE_PORT>
<REQUEST_METHOD>String</REQUEST_METHOD>
<REQUEST_TIME>String</REQUEST_TIME>
<SERVER_ADDR>String</SERVER_ADDR>
<SERVER_NAME>String</SERVER_NAME>
<SERVER_PORT>String</SERVER_PORT>
<SERVER_PROTOCOL>String</SERVER_PROTOCOL>
<SERVER_SOFTWARE>String</SERVER_SOFTWARE>
</serverdata>
<test>String</test>
<time>String</time>
<version>String</version>
</credentials>
<data xmlns:d2p1="http://schemas.datacontract.org/2004/07/QvicklyIntegration.Models.Payment">
<d2p1:number>String</d2p1:number>
<d2p1:orderid>String</d2p1:orderid>
<d2p1:status>String</d2p1:status>
<d2p1:url>String</d2p1:url>
</data>
</QvicklyCheckoutIpnCallBack>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <IpnCallBackResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos"> <Message>String</Message> <Success>false</Success> </IpnCallBackResponse>