示例#1
0
        public ChargeResponse ChargeCard(CardChargeRequest request, bool makeReferenceUnique = false)
        {
            if (makeReferenceUnique && request.Reference != null)
            {
                request.Reference = $"{request.Reference}-{Guid.NewGuid().ToString().Substring(0, 8)}";
            }

            return(_api.Post <ChargeResponse, CardChargeRequest>("charge", request));
        }
示例#2
0
 public ChargeResponse ChargeCard(CardChargeRequest request) =>
 _api.Post <ChargeResponse, CardChargeRequest>("charge", request);