POST developer/hostedpayment

Request Information

URI Parameters

None.

Body Parameters

HostedPaymentRequest
NameDescriptionTypeAdditional information
amount

decimal number

None.

currency

string

None.

reference

string

None.

firstName

string

None.

lastName

string

None.

email

string

None.

callBackURL

string

None.

allowPaymentMethods

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "amount": 1.1,
  "currency": "sample string 2",
  "reference": "sample string 3",
  "firstName": "sample string 4",
  "lastName": "sample string 5",
  "email": "sample string 6",
  "callBackURL": "sample string 7",
  "allowPaymentMethods": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<HostedPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SendMoney.DataObjects">
  <allowPaymentMethods xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </allowPaymentMethods>
  <amount>1.1</amount>
  <callBackURL>sample string 7</callBackURL>
  <currency>sample string 2</currency>
  <email>sample string 6</email>
  <firstName>sample string 4</firstName>
  <lastName>sample string 5</lastName>
  <reference>sample string 3</reference>
</HostedPaymentRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.