#sl-tech_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1297833848419127338
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- sl-tech_code, 5 days ago, 20 messages
Hi. Not sure what do you mean by this. What do you want to use the payment reference number for?
so we have a reference value for locating a payment if a customer has any issues or we need to refund
I see you shared a request to POST /v1/accounts/acct_xxx/persons/person_xxx endpoint. Is it related to your question?
no the form for asking a question needed an id, so I just took one of the latest transaction
How are you accepting payments in your app right now?
like this:
ToyoCart cart = repo.GetCart();
string successUrl = "https://localhost:62983/Checkout/Success";
string cancelUrl = "https://localhost:62983/Shop/Checkout";
StripeConfiguration.ApiKey = options.Value.SecretKey;
var opt = new SessionCreateOptions
{
LineItems =
[
new SessionLineItemOptions
{
PriceData = new SessionLineItemPriceDataOptions
{
Currency = cart.IsNorwegian ? "nok" : "eur",
UnitAmount = repo.GetTotalPrice() * 100,
ProductData = new SessionLineItemPriceDataProductDataOptions
{
Name = "Timothy Toyo",
Description = cart.IsNorwegian ? "Musikk fra Timothy Toyo" : "Music from Timothy Toyo"
}
},
Quantity = 1
}],
Mode = "payment",
SuccessUrl = successUrl,
CancelUrl = cancelUrl
};
SessionService service = new SessionService();
Session session = service.Create(opt);
return RedirectPermanent(session.Url);
I was just wondering if I could get some reference value in Checkout/Success
session object will have an id property. You can as well use the payment_intent property - which contains the ID of the underlying PaymentIntent object. You can search for those in your Dashboard to manage/refund the transactions later.
ok great! thanks!
Happy to help.