Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CheckoutSdk/Forward/Requests/DestinationRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class DestinationRequest
public string Body { get; set; }

/// <summary>
/// Optional configuration to add a signature to the forwarded HTTP request (Optional).
/// Optional configuration to add a signature to the forwarded HTTP request. (Optional)
/// </summary>
public AbstractSignature Signature { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
namespace Checkout.Forward.Requests.Signatures
{
public class DlocalSignature
public class DlocalSignature : AbstractSignature
{
/// <summary> Initializes a new instance of the DlocalSignature class. </summary>
public DlocalSignature() : base(SignatureType.Dlocal) { }

/// <summary>
/// The parameters required to generate an HMAC signature for the dLocal API. See their documentation for
/// details.
Expand Down
10 changes: 9 additions & 1 deletion test/CheckoutSdkTest/Forward/ForwardIntegrationTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Checkout.Forward.Requests;
using Checkout.Forward.Requests.Signatures;
using Checkout.Forward.Requests.Sources;
using Shouldly;
using System.Collections.Generic;
Expand Down Expand Up @@ -67,7 +68,14 @@ private ForwardRequest CreateForwardRequest()
}
},
Body =
"{\"amount\": 1000, \"currency\": \"USD\", \"reference\": \"some_reference\", \"source\": {\"type\": \"card\", \"number\": \"{{card_number}}\", \"expiry_month\": \"{{card_expiry_month}}\", \"expiry_year\": \"{{card_expiry_year_yyyy}}\", \"name\": \"Ali Farid\"}, \"payment_type\": \"Regular\", \"authorization_type\": \"Final\", \"capture\": true, \"processing_channel_id\": \"pc_xxxxxxxxxxx\", \"risk\": {\"enabled\": false}, \"merchant_initiated\": true}"
"{\"amount\": 1000, \"currency\": \"USD\", \"reference\": \"some_reference\", \"source\": {\"type\": \"card\", \"number\": \"{{card_number}}\", \"expiry_month\": \"{{card_expiry_month}}\", \"expiry_year\": \"{{card_expiry_year_yyyy}}\", \"name\": \"Ali Farid\"}, \"payment_type\": \"Regular\", \"authorization_type\": \"Final\", \"capture\": true, \"processing_channel_id\": \"pc_xxxxxxxxxxx\", \"risk\": {\"enabled\": false}, \"merchant_initiated\": true}",
Signature = new DlocalSignature
{
DlocalParameters = new DlocalParameters
{
SecretKey = "9f439fe1a9f96e67b047d3c1a28c33a2e"
}
}
}
};
}
Expand Down
Loading