using Fyatu;
using Fyatu.Models;
var fyatu = new FyatuClient(new FyatuOptions
{
AppId = "your_app_id",
SecretKey = "your_secret_key"
});
// Create a collection
var collection = await fyatu.Collections.CreateAsync(new CreateCollectionRequest
{
Amount = 10.00m,
Currency = "USD",
Reference = "order_123",
Description = "Payment for Order #123",
Customer = new Customer
{
Email = "[email protected]",
Name = "John Doe"
},
RedirectUrl = "https://yoursite.com/payment/success",
WebhookUrl = "https://yoursite.com/webhooks/fyatu"
});
Console.WriteLine(collection.CheckoutUrl);