Enter Credit Card Info
Request Parameters:
Enter credit card info for payment
URL: ./Api/Client/EnterCreditCardInfo
Header:
Content-Type:application/json
Required Parameters :
[Note: For Guest_customers as we get the customer_ID after add the product into the cart from that customer_ID get the CustomerGUID and pass that CustomerGUID in to the parameter. ]
Case-1. Exception Respons :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "",
"CurrencyId": "",
"LanguageId ": "1",
"PaymentMethodSystemName": "Payments.Manual",
"CreditCardType": "Master",
"CardholderName": "Hardik",
"CardNumber": "4546211212",
"CardCode": "123",
"ExpireMonth": "12",
"ExpireYear": "2019"
}
Response :
{
"Status": 0,
"Message": "Request cannot be empty",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Incorrect Parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"CurrencyId": "1",
"LanguageId ": "1",
"PaymentMethodSystemName": "",
"CreditCardType": "Master",
"CardholderName": "Hardik",
"CardNumber": "4546211212",
"CardCode": "123",
"ExpireMonth": "12",
"ExpireYear": "2019"
}
Response :
{
"Status": 0,
"Message": "Payment method not found",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-3. Success Respons :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"CurrencyId": "1",
"LanguageId ": "1",
"PaymentMethodSystemName": "Payments.Manual",
"CreditCardType": "Master",
"CardholderName": "Hardik",
"CardNumber": "4546211212",
"CardCode": "123",
"ExpireMonth": "12",
"ExpireYear": "2019"
}
Response :
{
"Status": 1,
"Message": "Success.",
"Data": {
"OnePageCheckoutEnabled": true,
"ShowSku": true,
"ShowProductImages": true,
"IsEditable": false,
"Items": [
{
"Sku": "N5500DS_R",
"Picture": {
"ImageUrl": "http://localhost:15536/images/thumbs/0000038_nikon-d5500-dslr-red_80.jpeg",
"ThumbImageUrl": null,
"FullSizeImageUrl": null,
"Title": "Show details for Nikon D5500 DSLR - Red",
"AlternateText": "Picture of Nikon D5500 DSLR - Red",
"CustomProperties": {}
},
"ProductId": 15,
"ProductName": "Nikon D5500 DSLR - Red",
"ProductType": null,
"ProductSeName": "nikon-d5500-dslr-red",
"UnitPrice": "$630.00",
"SubTotal": "$630.00",
"Discount": null,
"Quantity": 1,
"AllowedQuantities": [],
"AttributeInfo": "",
"RecurringInfo": null,
"RentalInfo": null,
"AllowItemEditing": false,
"Warnings": null,
"Id": 8,
"Message": null,
"MinAllowedQuantity": 0,
"MaxAllowedQuantity": 0
}
],
"CheckoutAttributeInfo": "",
"CheckoutAttributes": [
{
"Name": "Gift wrapping",
"DefaultValue": null,
"TextPrompt": null,
"IsRequired": true,
"SelectedDay": null,
"SelectedMonth": null,
"SelectedYear": null,
"AllowedFileExtensions": null,
"AttributeControlType": 1,
"Values": [
{
"Name": "Yes",
"ColorSquaresRgb": null,
"PriceAdjustment": "+$10.00",
"IsPreSelected": false,
"Message": null,
"Id": 2
}
],
"Message": null,
"Id": 1
}
],
"Warnings": [],
"MinOrderSubtotalWarning": null,
"TermsOfServiceOnShoppingCartPage": true,
"TermsOfServiceOnOrderConfirmPage": false,
"DiscountBox": {
"Display": true,
"Message": null,
"CurrentCode": null
},
"GiftCardBox": {
"Display": true,
"Message": null
},
"OrderReviewData": {
"Display": true,
"BillingAddress": {
"FirstName": "John",
"LastName": "Smith",
"Email": "admin@yourStore.com",
"CompanyEnabled": true,
"CompanyRequired": false,
"Company": "Nop Solutions Ltd",
"CountryEnabled": true,
"CountryId": 1,
"CountryName": "United States",
"StateProvinceEnabled": true,
"StateProvinceId": 16,
"StateProvinceName": "New York",
"CountyEnabled": false,
"CountyRequired": false,
"County": null,
"CityEnabled": true,
"CityRequired": true,
"City": "New York",
"StreetAddressEnabled": true,
"StreetAddressRequired": true,
"Address1": "21 West 52nd Street",
"StreetAddress2Enabled": true,
"StreetAddress2Required": false,
"Address2": "",
"ZipPostalCodeEnabled": true,
"ZipPostalCodeRequired": true,
"ZipPostalCode": "10021",
"PhoneEnabled": true,
"PhoneRequired": true,
"PhoneNumber": "12345678",
"FaxEnabled": true,
"FaxRequired": false,
"FaxNumber": "",
"AvailableCountries": [],
"AvailableStates": [],
"FormattedCustomAddressAttributes": "",
"CustomAddressAttributes": [],
"Id": 1,
"CustomProperties": {}
},
"IsShippable": true,
"ShippingAddress": {
"FirstName": "John",
"LastName": "Smith",
"Email": "admin@yourStore.com",
"CompanyEnabled": true,
"CompanyRequired": false,
"Company": "Nop Solutions Ltd",
"CountryEnabled": true,
"CountryId": 1,
"CountryName": "United States",
"StateProvinceEnabled": true,
"StateProvinceId": 16,
"StateProvinceName": "New York",
"CountyEnabled": false,
"CountyRequired": false,
"County": null,
"CityEnabled": true,
"CityRequired": true,
"City": "New York",
"StreetAddressEnabled": true,
"StreetAddressRequired": true,
"Address1": "21 West 52nd Street",
"StreetAddress2Enabled": true,
"StreetAddress2Required": false,
"Address2": "",
"ZipPostalCodeEnabled": true,
"ZipPostalCodeRequired": true,
"ZipPostalCode": "10021",
"PhoneEnabled": true,
"PhoneRequired": true,
"PhoneNumber": "12345678",
"FaxEnabled": true,
"FaxRequired": false,
"FaxNumber": "",
"AvailableCountries": [],
"AvailableStates": [],
"FormattedCustomAddressAttributes": "",
"CustomAddressAttributes": [],
"Id": 1,
"CustomProperties": {}
},
"SelectedPickUpInStore": false,
"ShippingMethod": null,
"PaymentMethod": ""
},
"DisplayTaxShippingInfo": false,
"TaxRates": [
{
"Rate": "0",
"Value": "$0.00"
}
],
"DisplayTax": true,
"DisplayTaxRates": false,
"Tax": "$0.00",
"IsApplied": false,
"Message": null,
"CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce"
},
"ValidationMessage": [],
"ErrorMessage": null
}