POST api/Payment/PaymentTransaction

Request Information

URI Parameters

None.

Body Parameters

CommonRequest
NameDescriptionTypeAdditional information
Request

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Request": "sample string 1"
}

application/xml, text/xml

Sample:
<CommonRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Common">
  <Request>sample string 1</Request>
</CommonRequest>

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 'CommonRequest'.

Response Information

Resource Description

ResponseOfResStripePayment
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

Message

string

None.

Status

integer

None.

Result

ResStripePayment

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "Message": "sample string 2",
  "Status": 3,
  "Result": {
    "transactionAmount": 1,
    "chargeId": "sample string 2",
    "customerStripeId": "sample string 3",
    "transactionId": "sample string 4",
    "paymentStatus": true,
    "cardNumber": "sample string 6",
    "cardTokenId": "sample string 7",
    "paymentDescription": "sample string 8",
    "faliureMsg": "sample string 9",
    "failureCode": "sample string 10",
    "status": "sample string 11",
    "stripeAccountId": "sample string 12",
    "StripeUserSubscriptionId": "sample string 13",
    "StripePlanId": "sample string 14",
    "StripeRefundId": "sample string 15",
    "stripeInvoiceId": "sample string 16"
  }
}

application/xml, text/xml

Sample:
<ResponseOfResStripePayment7RwEO1rg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Common">
  <IsSuccess>true</IsSuccess>
  <Message>sample string 2</Message>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/StripePaymentGateway">
    <d2p1:StripePlanId>sample string 14</d2p1:StripePlanId>
    <d2p1:StripeRefundId>sample string 15</d2p1:StripeRefundId>
    <d2p1:StripeUserSubscriptionId>sample string 13</d2p1:StripeUserSubscriptionId>
    <d2p1:cardNumber>sample string 6</d2p1:cardNumber>
    <d2p1:cardTokenId>sample string 7</d2p1:cardTokenId>
    <d2p1:chargeId>sample string 2</d2p1:chargeId>
    <d2p1:customerStripeId>sample string 3</d2p1:customerStripeId>
    <d2p1:failureCode>sample string 10</d2p1:failureCode>
    <d2p1:faliureMsg>sample string 9</d2p1:faliureMsg>
    <d2p1:paymentDescription>sample string 8</d2p1:paymentDescription>
    <d2p1:paymentStatus>true</d2p1:paymentStatus>
    <d2p1:status>sample string 11</d2p1:status>
    <d2p1:stripeAccountId>sample string 12</d2p1:stripeAccountId>
    <d2p1:stripeInvoiceId>sample string 16</d2p1:stripeInvoiceId>
    <d2p1:transactionAmount>1</d2p1:transactionAmount>
    <d2p1:transactionId>sample string 4</d2p1:transactionId>
  </Result>
  <Status>3</Status>
</ResponseOfResStripePayment7RwEO1rg>