User-605499000 posted
Possible unintended reference comparison to get a value comparison Cast the left hands id to type "string" error.
Below is the code. I see that a lot of people are getting this error but still could not fix.
bool ret = payPalCaller.DoCheckoutPayment(finalPaymentAmount, token, PayerID, ref decoder, ref retMsg);
if (ret)
{
// Retrieve PayPal confirmation value.
string PaymentConfirmation = decoder["PAYMENTINFO_0_TRANSACTIONID"].ToString();
TransactionId.Text = PaymentConfirmation;
ProductContext _db = new ProductContext();
// Get the current order id.
int currentOrderId = -1;
if (Session[" currentOrderId"] != string.Empty)
{
currentOrderId = Convert.ToInt32(Session["currentOrderID"]); ( here is where the error is)
}
Order myCurrentOrder;
if (currentOrderId >= 0)
{
thanks
Jen