Skip to content

CreditCardToken null while trying to save credit cart info #2

Description

@kocakmstf

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);
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions