Select Payment Method
Request Parameters:
For select payment method
URL: ../Api/Client/SelectPaymentMethod
Header:
Content-Type:application/json
Required Parameters :
[Note: For Guest_customers as we get the CustomerGUID after add the product into the cart from that CustomerGUID 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": "",
"Paymentmethod":"Payments.CheckMoneyOrder",
"UseRewardPoints":"true"
}
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",
"Paymentmethod":"",
"UseRewardPoints":"true"
}
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",
"Paymentmethod":"Payments.CheckMoneyOrder",
"UseRewardPoints":"true"
}
Response :
{
"Status": 1,
"Message": "Payment method selected.",
"Data": {
"RewardPointDetails": {
"UseRewardPoints": false,
"RedeemedRewardPoint": 0,
"RewardPointsAmount": "$0.00",
"RewardPointsBalance": 0
},
"CustomerModel": {
"CustomerGuid": "6c6b37a8-e3f1-48e4-b0c6-45c3d5001dca",
"Message": null
}
},
"ValidationMessage": [],
"ErrorMessage": null
}