POST api/PayPal/PaymentComplateV2

Request Information

URI Parameters

None.

Body Parameters

PaymentRequestModel
NameDescriptionTypeAdditional information
PaymentID

string

None.

PayPalTransactionID

string

None.

ItemId

integer

None.

SectionId

integer

None.

isMy

boolean

None.

ClientName

string

None.

Amount

decimal number

None.

UserIP

string

None.

UserCountry

string

None.

UserCountryCode

string

None.

Paypal

PaypalModel

None.

Request Formats

application/json, text/json

Sample:
{
  "PaymentID": "sample string 1",
  "PayPalTransactionID": "sample string 2",
  "ItemId": 3,
  "SectionId": 4,
  "isMy": true,
  "ClientName": "sample string 6",
  "Amount": 7.0,
  "UserIP": "sample string 8",
  "UserCountry": "sample string 9",
  "UserCountryCode": "sample string 10",
  "Paypal": {
    "create_time": "sample string 1",
    "id": "sample string 2",
    "purchase_units": [
      {
        "create_time": "sample string 1",
        "id": "sample string 2",
        "amount": {
          "currency_code": "sample string 1",
          "value": "sample string 2"
        },
        "payments": {
          "captures": [
            {
              "amount": {
                "currency_code": "sample string 1",
                "value": "sample string 2"
              },
              "id": "sample string 1",
              "status": "sample string 2",
              "create_time": "sample string 3"
            },
            {
              "amount": {
                "currency_code": "sample string 1",
                "value": "sample string 2"
              },
              "id": "sample string 1",
              "status": "sample string 2",
              "create_time": "sample string 3"
            }
          ]
        }
      },
      {
        "create_time": "sample string 1",
        "id": "sample string 2",
        "amount": {
          "currency_code": "sample string 1",
          "value": "sample string 2"
        },
        "payments": {
          "captures": [
            {
              "amount": {
                "currency_code": "sample string 1",
                "value": "sample string 2"
              },
              "id": "sample string 1",
              "status": "sample string 2",
              "create_time": "sample string 3"
            },
            {
              "amount": {
                "currency_code": "sample string 1",
                "value": "sample string 2"
              },
              "id": "sample string 1",
              "status": "sample string 2",
              "create_time": "sample string 3"
            }
          ]
        }
      }
    ],
    "links": [
      {
        "href": "sample string 1"
      },
      {
        "href": "sample string 1"
      }
    ]
  }
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PaymentRequestModel'.

Response Information

Resource Description

SVJsonResult
NameDescriptionTypeAdditional information
ContentEncoding

Encoding

None.

ContentType

string

None.

Data

Object

None.

JsonRequestBehavior

JsonRequestBehavior

None.

MaxJsonLength

integer

None.

RecursionLimit

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ContentEncoding": null,
  "ContentType": "sample string 1",
  "Data": {},
  "JsonRequestBehavior": 0,
  "MaxJsonLength": 1,
  "RecursionLimit": 1
}