Hi,
i'm trying to save credit carts on payu system and take token. But despite i set true at order's 'TokenEnable' value, it returns null and there isn't any error description etc. about this. I'm using Garanti Bankasi-mastercart for test.
here is my code:
if (userPaymentModel.chkSaveCart)
{
order.TokenEnable = true;
order.TokenType=TokenType.PAY_BY_CLICK;
}
and getting token like
var currentRequest = this.HttpContext.ApplicationInstance.Context.Request;
var response = ALUResponse.FromHttpRequest(currentRequest);
var ipnService=new PayU.IPN.IPNService(PayUSignatureKey);
var ipnRequest= ipnService.ParseRequest(currentRequest);
if (string.IsNullOrEmpty(ipnRequest.CreditCardToken) == false)
{
userService.RegisterPayuToken(ipnRequest.CreditCardToken);
}
Hi,
i'm trying to save credit carts on payu system and take token. But despite i set true at order's 'TokenEnable' value, it returns null and there isn't any error description etc. about this. I'm using Garanti Bankasi-mastercart for test.
here is my code:
and getting token like