Skip to content

Commit

Permalink
Merge branch 'master' into add-bizum-payment-method
Browse files Browse the repository at this point in the history
  • Loading branch information
mozcan authored Nov 26, 2024
2 parents 897bf35 + 12a589b commit e6bf019
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Craftgate/Adapter/BaseAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RequestOptions options
headers.Add(ApiKeyHeaderName, options.ApiKey);
headers.Add(RandomHeaderName, randomString);
headers.Add(AuthVersionHeaderName, ApiVersionHeaderValue);
headers.Add(ClientVersionHeaderName, ClientVersionHeaderValue + ":1.0.68");
headers.Add(ClientVersionHeaderName, ClientVersionHeaderValue + ":1.0.69");
headers.Add(SignatureHeaderName, PrepareAuthorizationString(request, path, randomString, options));
if (options.Language != null)
{
Expand Down
2 changes: 1 addition & 1 deletion Craftgate/Request/CreatePaymentRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class CreatePaymentRequest
public string BankOrderId { get; set; }
public string ClientIp { get; set; }
public Card Card { get; set; }
public FraudCheckParameters FraudCheckParameters { get; set; }
public FraudCheckParameters FraudParams { get; set; }
public IList<PaymentItem> Items { get; set; }
public Dictionary<string, object> AdditionalParams { get; set; }
public bool Retry { get; set; } = true;
Expand Down
8 changes: 7 additions & 1 deletion Samples/PaymentSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ public void Create_Payment()
ExternalId = Guid.NewGuid().ToString(),
Price = new decimal(20.0)
}
},
FraudParams = new FraudCheckParameters()
{
BuyerEmail = "[email protected]",
BuyerPhoneNumber = "5555555555",
BuyerExternalId = "buyerExternalId"
}
};

Expand All @@ -70,7 +76,7 @@ public void Create_Payment()
Assert.AreEqual(decimal.Zero, response.MerchantCommissionRate);
Assert.AreEqual(decimal.Zero, response.MerchantCommissionRateAmount);
Assert.AreEqual(false, response.PaidWithStoredCard);
Assert.AreEqual("525864", response.BinNumber);
Assert.AreEqual("52586400", response.BinNumber);
Assert.AreEqual("0001", response.LastFourDigits);
Assert.AreEqual("CREDIT_CARD", response.CardType);
Assert.AreEqual("MASTER_CARD", response.CardAssociation);
Expand Down

0 comments on commit e6bf019

Please sign in to comment.