-
-
Notifications
You must be signed in to change notification settings - Fork 85
14. Payment link Api
Vincent Kok edited this page Jul 9, 2024
·
4 revisions
PaymentLinkRequest paymentLinkRequest = new PaymentLinkRequest() {
Description = "Test",
Amount = new Amount(Currency.EUR, 50),
WebhookUrl = this.DefaultWebhookUrl,
RedirectUrl = this.DefaultRedirectUrl,
ExpiresAt = DateTime.Now.AddDays(1)
};
using IPaymentLinkClient client = new PaymentLinkClient({yourApiKey});
PaymentLinkResponse createdPaymentLink = await this._paymentLinkClient.CreatePaymentLinkAsync(paymentLinkRequest);
using IPaymentLinkClient client = new PaymentLinkClient({yourApiKey});
PaymentLinkResponse result = await this._paymentLinkClient.GetPaymentLinkAsync({yourPaymentLinkId});
using IPaymentLinkClient client = new PaymentLinkClient({yourApiKey});
ListResponse<PaymentLinkResponse> result = await this._paymentLinkClient.GetPaymentLinkListAsync();
using IPaymentLinkClient client = new PaymentLinkClient({yourApiKey});
PaymentLinkUpdateRequest paymentLinkUpdateRequest = new() {
Description = "Updated description",
Archived = true
};
PaymentLinkResponse updatedPaymentLink = await this._paymentLinkClient.UpdatePaymentLinkAsync({yourPaymentLinkId}, paymentLinkUpdateRequest);
using IPaymentLinkClient client = new PaymentLinkClient({yourApiKey});
await this._paymentLinkClient.DeletePaymentLinkAsync({yourPaymentLinkId});
using IPaymentLinkClient client = new PaymentLinkClient({yourApiKey});
var result = await _paymentLinkClient.GetPaymentLinkPaymentListAsync({yourPaymentLinkId});