PayU-EMEA / alu-client-php

Automatic Live Update Client
https://secure.payu.ro/docs/alu/v3/
25 stars 22 forks source link

How am I supposed to retrieve card token? #16

Closed firatakandere closed 8 years ago

firatakandere commented 8 years ago

I follow the following example for recurring payments. It provides a function to enable generating card token but how am I supposed to get that token?

https://github.com/PayU/alu-client-php/blob/master/examples/createTokenForRecurrentPayment.php

drealecs commented 8 years ago

Hi @firatakandere, I just updated the example to also point out how to read the token. That is a call to $response->getTokenHash().

Keep in mind that this is a feature that might not be available by default. If the call to getTokenHash() is not returning anything, you'll have to talk with operation department to enable it.

drealecs commented 8 years ago

Hi @firatakandere. I would like to close this issue. Have it solved your problem?

firatakandere commented 8 years ago

Yes, I have just checked and I get a string with this method. Thank you very much for your help!