Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

✨ [open-formulieren/open-forms#4380] Add paymentId to plugin #3

Conversation

stevenbal
Copy link
Contributor

@stevenbal stevenbal commented Aug 5, 2024

Based on #1, so that should be merged first

Closes #2 partially

Closes open-formulieren/open-forms#4380 partially

Related PR open-formulieren/open-forms#4583

@stevenbal stevenbal force-pushed the feature/4380-ogone-payment-id branch from eaece04 to 3abebe4 Compare August 5, 2024 14:01
@stevenbal stevenbal marked this pull request as draft August 5, 2024 14:03
@stevenbal stevenbal force-pushed the feature/4380-ogone-payment-id branch from 3abebe4 to 76a96d2 Compare August 5, 2024 14:10
@stevenbal stevenbal marked this pull request as ready for review August 5, 2024 14:10
@stevenbal stevenbal marked this pull request as draft August 5, 2024 14:14
@stevenbal stevenbal marked this pull request as ready for review August 5, 2024 14:15
if submission is None:
return None

return list(submission.payments.values_list("provider_payment_id", flat=True))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this now includes all the payments, also payments that have failed. We should only include the completed (and there's a second status) payments.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah that's right, I added the same filter used by submission.payments.get_completed_public_order_ids

@stevenbal stevenbal force-pushed the feature/4380-ogone-payment-id branch from 76a96d2 to fda42a5 Compare August 6, 2024 07:32
@stevenbal stevenbal deleted the branch feature/4380-implement-extra-payment-attributes August 6, 2024 07:33
@stevenbal stevenbal closed this Aug 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants