Skip to content

Commit

Permalink
add signing_key to GetPaymentRequestItem Select (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk authored Jan 14, 2025
1 parent e799297 commit b5e6bd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/repositories/payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ WHERE pr.issuer_did = $1`
// GetPaymentRequestItem returns a payment request item
func (p *payment) GetPaymentRequestItem(ctx context.Context, issuerDID w3c.DID, nonce *big.Int) (*domain.PaymentRequestItem, error) {
const query = `
SELECT payment_request_items.id, nonce, payment_request_id, payment_request_info, payment_request_items.payment_option_id
SELECT payment_request_items.id, nonce, payment_request_id, payment_request_info, payment_request_items.payment_option_id, payment_request_items.signing_key
FROM payment_request_items
LEFT JOIN payment_requests ON payment_requests.id = payment_request_items.payment_request_id
WHERE payment_requests.issuer_did = $1 AND nonce = $2;`
Expand All @@ -263,6 +263,7 @@ WHERE payment_requests.issuer_did = $1 AND nonce = $2;`
&item.PaymentRequestID,
&paymentRequestInfoBytes,
&item.PaymentOptionID,
&item.SigningKeyID,
)
if err != nil {
return nil, fmt.Errorf("could not get payment request item: %w", err)
Expand Down

0 comments on commit b5e6bd9

Please sign in to comment.