Skip to content

[16.0][ADD] add shopinvader_api_payment_provider_worldline - #102

Open
benwillig wants to merge 1 commit into
shopinvader:16.0from
acsone:16.0-add_payment_worldline-bwi
Open

[16.0][ADD] add shopinvader_api_payment_provider_worldline#102
benwillig wants to merge 1 commit into
shopinvader:16.0from
acsone:16.0-add_payment_worldline-bwi

Conversation

@benwillig

Copy link
Copy Markdown

@paradoxxxzero paradoxxxzero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I migrated this PR in #108 to replace shopinvader_api_payment_provider_sips and I tried to add unit test, please take a look @benwillig

return payload
shopinvader_api_base_url = self.shopinvader_frontend_redirect_url
return_url = urljoin(
shopinvader_api_base_url, "/shopinvader/payment/providers/worldline/return"

@paradoxxxzero paradoxxxzero Apr 28, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a wild assumption, in other providers we use:

shopinvader_api_payment_base_url = self.env.context.get(
     "shopinvader_api_payment_base_url"
)
return_url = urljoin(shopinvader_api_payment_base_url, "worldline/return")

shopinvader_api_base_url, "/shopinvader/payment/providers/worldline/return"
)
return_url_params = urls.url_encode({"provider_id": str(self.provider_id.id)})
payload["hostedCheckoutSpecificInput"][

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should probably patch redirectPaymentMethodSpecificInput -> redirectionData -> returnUrl too

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