Skip to content

ApiProvider: Replace old psp with new PaymentServiceProvider - #284

Merged
elmira-y merged 14 commits into
mainfrom
update-apistripetype
Jul 31, 2026
Merged

ApiProvider: Replace old psp with new PaymentServiceProvider#284
elmira-y merged 14 commits into
mainfrom
update-apistripetype

Conversation

@elmira-y

@elmira-y elmira-y commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

Description

  • ApiProvider: Add PaymentServiceProvider, Use PaymentMethodType instead of ApiPaymentMethodType, Remove psp stripe_account_id stripe_payment_method_types logpay_payment_method_types
  • ApiPaymentMethodType: Remove PSP_PROVIDED

Test artifact

Test models updated?

In case you created a new APIObject or extracted one,
make sure to update the test fakes in test/src/commonMain/models as well.

Changes to existing models will probably fail on testing and are noticed by the CI.

Test services updated?

In case you created a new service or extracted one,
make sure to update the test fakes in test/src/commonMain/services as well.

Changes to existing services will probably fail on testing and are noticed by the CI.

@elmira-y elmira-y changed the title Move PaymentServiceProvider to ApiBootstrapResponse ApiProvider: Replace old psp with new PaymentServiceProvider Jul 29, 2026

@StefMa StefMa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice job! 🧑‍🚀

I think we shouldn't crash in case the receive an unkown PSP.
Otherwise more nitpicking comments, as always 💁

Comment thread library/src/commonMain/kotlin/com/ioki/passenger/api/models/ApiProvider.kt Outdated
Comment thread library/src/commonMain/kotlin/com/ioki/passenger/api/models/ApiProvider.kt Outdated
Comment thread library/src/commonMain/kotlin/com/ioki/passenger/api/models/ApiProvider.kt Outdated
Comment thread test/src/commonMain/kotlin/com/ioki/passenger/api/test/models/ApiProvider.kt Outdated
Comment thread library/src/commonTest/kotlin/com/ioki/passenger/api/models/ApiProviderTest.kt Outdated
Comment thread library/src/commonTest/kotlin/com/ioki/passenger/api/models/ApiProviderTest.kt Outdated
@StefMa

StefMa commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

One more thing, so I don't have to add it in a separate PR 🤓 :
A PaymentMethod(Response) now contains also a boolean requires_paypal_secure_element.

@elmira-y
elmira-y requested a review from StefMa July 31, 2026 10:26
@elmira-y
elmira-y merged commit e180180 into main Jul 31, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants