fixes the payment view

This commit is contained in:
2017-05-26 04:24:30 +02:00
parent 7119af2ac4
commit 85aac8aa8f

View File

@ -239,7 +239,9 @@ OrderDescription = query.Description, CancelURL = urls.CancelUrl, ReturnURL = ur
string token, GetExpressCheckoutDetailsResponseType fromPayPal)
{
return new PaymentInfo {
DbContent = await context.PayPalPayments.SingleOrDefaultAsync(
DbContent = await context.PayPalPayments
.Include(p=>p.Executor)
.SingleOrDefaultAsync(
p=>p.CreationToken==token),
DetailsFromPayPal = fromPayPal
};