跳至内容
菜单
此问题已终结
393 查看

I'm adding custom payment provider and everything is well expect when I make a make payments by token
in the documentation:
_send_payment_request()

Request the provider handling the transaction to make the payment.

This method is exclusively used to make payments by token, which correspond to both the online_token and the offline transaction’s operation field.

For a provider to support tokenization, it must override this method and make an API request to make a payment.

Note: self.ensure_one()

I'm handling the logic in this function and I retrieve url how can I redirect the user to any url in _send_payment_request?
What happens after the payment with a token the normal flow goes and I get redirect to payment status by odoo.
how can I redirect the user to specific page form in this case?

形象
丢弃
编写者

I found the answer
To change the generic behavior overwrite js method called _processTokenFlow which takes processingValues that can be modified at _get_specific_processing_values and add url you want