Skip to content

Commit

Permalink
Merge pull request #41 from PinchPayments/multi-nonce-realtime
Browse files Browse the repository at this point in the history
Added multi-nonce support for realtime endpoint
  • Loading branch information
dkarzon authored Nov 20, 2023
2 parents 2f6a163 + a0da6a7 commit 714a217
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Pinch.SDK.WebSample/Controllers/PaymentsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public async Task<IActionResult> Realtime(CreateRealtimePaymentVm model)
CreditCardToken = model.CreditCardToken,
Amount = Convert.ToInt32(model.Amount * 100),
Description = model.Description,
Nonce = model.Nonce
Nonce = new List<string> { model.Nonce }
});

if (!result.Success)
Expand Down
2 changes: 1 addition & 1 deletion src/Pinch.SDK/Payments/RealtimePaymentSaveOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ public class RealtimePaymentSaveOptions
/// Optional. Pinch will echo back the nonce value in the response, this is for replay protection.
/// If the same Nonce is detected the in progress payment object will be returned.
/// </summary>
public string Nonce { get; set; }
public List<string> Nonce { get; set; }
}
}

0 comments on commit 714a217

Please sign in to comment.