fix: return urls for stripe

This commit is contained in:
Damien Ostler 2024-02-24 22:54:33 -05:00
parent 08f8435db7
commit 9dcf946db8

View File

@ -102,7 +102,7 @@ public class StripePaymentServiceProvider:IPaymentService
Currency = "usd", Currency = "usd",
ProductData = new Stripe.Checkout.SessionLineItemPriceDataProductDataOptions ProductData = new Stripe.Checkout.SessionLineItemPriceDataProductDataOptions
{ {
Name = "Comission Service", Name = "Skeb-Like Service",
}, },
}, },
Quantity = 1, Quantity = 1,
@ -113,8 +113,8 @@ public class StripePaymentServiceProvider:IPaymentService
ApplicationFeeAmount = feeAmount, ApplicationFeeAmount = feeAmount,
}, },
Mode = "payment", Mode = "payment",
SuccessUrl = $"{_baseUiUrl}/dashboard/requests/{requestId}", SuccessUrl = $"{_baseUiUrl}/dashboard/requests",
CancelUrl = $"{_baseUiUrl}/dashboard/requests/{requestId}", CancelUrl = $"{_baseUiUrl}/dashboard/requests",
Metadata = new Dictionary<string, string>() Metadata = new Dictionary<string, string>()
{ {
["orderId"] = requestId.ToString() ["orderId"] = requestId.ToString()