Changes

Jump to navigation Jump to search
1,888 bytes added ,  14:58, 2 June 2014
Created page with "{{Api_Method_Spec| Description=Create a purchase for product |Parameters= {{Api_Parameter| ParamName=token |ParamType=String |ParamRequired=required |ParamDescription=A valid t..."
{{Api_Method_Spec|
Description=Create a purchase for product

|Parameters=

{{Api_Parameter|
ParamName=token
|ParamType=String
|ParamRequired=required
|ParamDescription=A valid token for identifying the API session context and logged user.
}}
{{Api_Parameter|
ParamName=productId
|ParamType=int
|ParamRequired=required
|ParamDescription=
}}
{{Api_Parameter|
ParamName=productType
|ParamType=int
|ParamRequired=required
|ParamDescription=
}}
{{Api_Parameter|
ParamName=pricingModelId
|ParamType=int
|ParamRequired=required
|ParamDescription=
}}
{{Api_Parameter|
ParamName=paymentType
|ParamType=PaymentType
|ParamRequired=required
|ParamDescription=
}}
{{Api_Parameter|
ParamName=pin
|ParamType=String
|ParamRequired=required
|ParamDescription=
}}
{{Api_Parameter|
ParamName=returnURL
|ParamType=String
|ParamRequired=required
|ParamDescription=
}}
{{Api_Parameter|
ParamName=cancelURL
|ParamType=String
|ParamRequired=required
|ParamDescription=
}}

|Returns=
Returns a JSON with a [[PurchaseResponse]] object containing information that Purchase has been created with success.

'''Example:'''

{
: <span style="color: #a11;">"Offset"</span>: <span style="color: #164;">0</span>,
: <span style="color: #a11;">"Limit"</span>: <span style="color: #164;">100</span>,
: <span style="color: #a11;">"Count"</span>: <span style="color: #164;">6</span>,
: <span style="color: #a11;">"Content"</span>:
:: [ <span style="color: #219;">[[PurchaseResponse]] object</span> ]
}

|Exceptions=
* [[UserPurchasePinValueNoMatchException]]

|Cache=
This method is not cached.

|KnownIssues=
None

|VersionHistory=
{{{!}} border="2" style="width:800px;" cellpadding="5" cellspacing="0"
{{!}}- style="background:#88ccff;font-size:110%"
! API Version Number
! Change description
! Changes author
{{!}}- valign="top"
! 1.0
{{!}} Initial method design
{{!}} Harley Cabral
{{!}}}

|SeeAlso=
}}

Navigation menu