[Transactions] Redirect on Cancel?

Maniaplanet public API, ManiaConnect system and the open source PHP SDK.

Moderator: NADEO

Post Reply
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

[Transactions] Redirect on Cancel?

Post by m4rcel »

I have a request concerning the Transactions, especially the behavior of the dialog box, where the user confirms or cancels them.

If a user confirms a Transaction, he gets redirected to the Manialink registered with the code. But if he cancels the Transaction, the user stays where he was, without reloading the ManiaLink. This means, that on server side, you cannot differ between "is still thinking about accepting the Transaction" and "has cancelled the Transaction". For my current project, I exactly need this difference to know ^^

Is it possible to alter the behavior so that the user gets redirected, even if he did not paid the Transaction? Through the Payments->isPaid() method, you are still able to check if he actually paid or not.

(Only as a thought, which I had: Maybe an additional parameter "redirectOnCancel" can be introduced. If set to 1, the Transaction-Confirm-Box redirects on Cancel the same way as on Confirm. If not set, the current behavior is kept to be backward compatible to existing Manialinks.)

Would be nice to hear something from you ;)
ImageImage
Image
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: [Transactions] Redirect on Cancel?

Post by The_Big_Boo »

Unfortunately this behaviour is hardcoded in the client, it can't be altered by the SDK... I agree it might sometimes be usefull but I don't have any clue if it will be done and when.
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

Re: [Transactions] Redirect on Cancel?

Post by m4rcel »

I already guessed it is a hardcoded behavior... :(

Can you at least forward this request to the Dev team (if not already happened)? :)
ImageImage
Image
Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 1 guest