Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please share an example of how to reuse token for a monthly subscription payment. I can't find out in docs. #152

Open
dsdeoli opened this issue Mar 16, 2020 · 5 comments
Labels

Comments

@dsdeoli
Copy link

dsdeoli commented Mar 16, 2020

Please share an example of how to reuse token for a monthly subscription payment.
I can't find out in docs.
please help me

@judgej
Copy link
Member

judgej commented Mar 16, 2020

There is some documentation on card tokens here:

https://github.com/thephpleague/omnipay-sagepay#token-billing

SagePay does not provide a regular billing schedule. Instead, you get a cardReference as a standalone transaction, or get it on the back of another transaction. Then you can use the cardReference multiple times to take further payments. Your application would use the token each month to take the subscription. The cardReference will last two years (if I remember correctly) or you can remove it explicitly. The last time I looked (some time ago) there was no way to fetch a list of card references from Sage Pay, so you have to look after the list yourself.

@dsdeoli
Copy link
Author

dsdeoli commented Mar 17, 2020

Hi judge, thanks for the reply to me.
but can you please share with me an example following auto further payment like REPEAT Transaction but I need future payment using token.

"https://github.com/thephpleague/omnipay-sagepay#token-billing"
I have read this doc but I can't understand to process.
can you possibly to share with an example.

@judgej
Copy link
Member

judgej commented Mar 17, 2020

I'll try to get something together over the next few days. In the middle of an office move at the moment.

@judgej
Copy link
Member

judgej commented Jun 18, 2020

Yikes. Lockdown during that office move meant we never actually moved, and things got complicated. I've added examples to my ever-growing list. But if you have found your way to the solution anyway, then any examples of how you did it will be very useful.

@eileenmcnaughton
Copy link
Contributor

I'm guessing the office move is still off....

On this issue though - I'm setting createToken and I can see that the url ends in &CreateToken=1 as a result

However, it appears that the response should include Token as a field - which is does not. My current theory is that it is because the account has not been enabled for tokens per https://developer.sage.com/api/payments/additional-integrations/tokens/#:~:text=card%20identifiers%20(Tokens)-,Overview,proceed%20to%20the%20checkout%20pages.

However, I also note that that page does not mention the option of passing createToken and I can't find much mention on their site so it's also possible it's something they are phasing out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants