Skip to content

My order always return "Your order information is invalid" using "TamaraApiClient.CreateCheckout" #1

@ahmed-abdelrazek

Description

@ahmed-abdelrazek

this the order json

{
  "Description": "Order #29b8ffe4-3579-4e77-a74f-af924ab7a3fa",
  "CountryCode": "SA",
  "Locale": "ar-SA",
  "DiscountAmount": {
    "Name": "Total Discount Amount",
    "Amount": {
      "Currency": "SAR",
      "Amount": 100
    }
  },
  "MerchantUrl": {
    "SuccessUrl": "https://example.com/",
    "FailureUrl": "https://example.com/",
    "CancelUrl": "https://example.com/",
    "NotificationUrl": "https://example.com/api/Payments/TammaraReceiveAuthoriseNotification"
  },
  "Platform": "Web",
  "IsMobile": false,
  "expiresInMinutes": 0,
  "RiskAssessment": null,
  "AdditionalData": null,
  "Id": "211",
  "PaymentType": "PAY_BY_INSTALMENTS",
  "Instalments": 4,
  "ReferenceId": "29b8ffe4-3579-4e77-a74f-af924ab7a3fa",
  "Consumer": {
    "FirstName": "ahmed",
    "LastName": "ahmed",
    "PhoneNumber": "201100000000",
    "Email": "email@ptit.com.sa",
    "NationalId": null,
    "DateOfBirth": null,
    "IsFirstOrder": null
  },
  "BillingAddress": null,
  "ShippingAddress": null,
  "TotalAmount": {
    "Currency": "SAR",
    "Amount": 50.6
  },
  "TaxAmount": {
    "Currency": "SAR",
    "Amount": 6.6
  },
  "ShippingAmount": null,
  "Items": [
    {
      "ReferenceId": "421",
      "Type": "Digital",
      "Name": "react Tickett",
      "Sku": "421",
      "ImageUrl": null,
      "Quantity": 1,
      "TaxAmount": {
        "Currency": "SAR",
        "Amount": 6.6
      },
      "TotalAmount": {
        "Currency": "SAR",
        "Amount": 50.6
      },
      "UnitPrice": {
        "Currency": "SAR",
        "Amount": 144
      },
      "DiscountAmount": {
        "Currency": "SAR",
        "Amount": 100
      }
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions