how do I use luciferous jwt?

151 views
Skip to first unread message

Smart

unread,
Feb 14, 2012, 12:31:59 PM2/14/12
to In-App Payments
Your docs tell me to use a library but they don't say how

how do I use this library?

https://github.com/luciferous/jwt

Mihai Ionescu

unread,
Feb 14, 2012, 5:49:54 PM2/14/12
to in-app-...@googlegroups.com
To quickly test the JWT functionality you only need to include luciferous/JWT.php

You include library files using the PHP require_once or include_once statements. Have a look at the luciferous/tests/Bootstrap.php and JWTTest.php for an usage example.
The other files you mention are used to create the PEAR package (PEAR = PHP Extension and Application Repository). You can read more about PEAR at http://pear.php.net/

Mihai

Smart

unread,
Feb 15, 2012, 5:45:36 AM2/15/12
to In-App Payments
To quickly test? I am looking to use In-App payments not test!
So do I 'only' need JWT.php to 'use' IAP?

I have a business, sorry to be blunt.


On Feb 14, 10:49 pm, Mihai Ionescu <mi...@google.com> wrote:
> To quickly test the JWT functionality you only need to include
> luciferous/JWT.php
>
> You include library files using the PHP require_once or include_once
> statements. Have a look at the luciferous/tests/Bootstrap.php and
> JWTTest.php for an usage example.
> The other files you mention are used to create the PEAR package (PEAR = PHP
> Extension and Application Repository). You can read more about PEAR athttp://pear.php.net/

Smart

unread,
Feb 15, 2012, 10:40:14 PM2/15/12
to In-App Payments
When exactly are you thinking of continuing my support?

Matthew Endsley

unread,
Feb 15, 2012, 10:54:49 PM2/15/12
to in-app-...@googlegroups.com
I'm not an expert on PHP, but it looks like luciferous/JWT.php is pretty self contained and documented.

What is the issue you're having?  Is it generating proper JWT data for you?

Smart

unread,
Feb 16, 2012, 8:03:54 AM2/16/12
to In-App Payments
Matthew, the documentation ends with the instruction to 'use a
library'...
I have taken JWT.php, uploaded it to the root of my site and required
it once in my postback.php.

I don't any documentation for that step or any after that!

I've used the 'In-App Payments demo' to get my javascript
'goog.payments.inapp.buy' and encode my jwt.

I must also note that the documents provided do not even show a list
of 'Uh oh' errors and their possible causes!

Well Un-documented I would say as to be honest Matthew I don't know
what problem I'm having with jwt I now know how to properly pronounce
jwt (as jot), I fail to answer you, I just don't know!


Maybe you could lead me to the well documented part...?


https://developers.google.com/in-app-payments/docs/tutorial
https://developers.google.com/in-app-payments/docs/postback
Reply all
Reply to author
Forward
0 new messages