In-App purchase usando PayPal (válido para todos los dispositivos)

Previous topic - Next topic

msx

Quote from: Kitty Hello on 2011-Oct-13
ah. Last time I checked the lower part was missing. AWESOME!

Now, can someone please translate it for us?


Quote$fp = fsockopen ('www.sandbox.paypal.com', 80, $errno, $errstr, 30);
You can do that with port 80!? Then the whole validation-process could be written in GLBasic?

I think not, because PayPal only return values ​​to a URL.

Anyway it is better to do it this way to be able to store data on an external server, so you can activate the service at any time.

Hark0

http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

msx

Tutorial completed!

I hope that is helpful.

:booze:

ampos

I will translate it tonite and open a new thread on codesnipets forum.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE


ampos

Estoy traduciendo y...

En la BD, xq el campo 4, fecha, lo has puesto como int en vez de date?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

ampos

Más dudas, estas posiblemente xq no tengo ni idea de php ni SQL.

¿Qué nombre le has dado a la base de datos? ¿Es irrelevante? Si no lo es, ¿se usa en alguno de los ficheros php?

En el fichero paypal.php, la primera linea, <form name="_donations" id="donar", lo de _donations y donar, ¿de donde salen? ¿son tb irrelevantes?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

ampos

ME VOY A CAGAR EN LA PUTA MADRE QUE PARIÓ AL WORD, QUE SE HA COLGAO Y HE PERDIO LA TRADUCCION CUANDO IBA POR LA MITAD. ME CAGO EN EL BILL GATES Y EN LA MADRE QUE LO PARIO. Y EN TOS LOS KE TRABAJAN EN MICROMIERDADELOSCOJONES.

:rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant:
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

msx

Quote from: ampos on 2011-Oct-16
Estoy traduciendo y...

En la BD, xq el campo 4, fecha, lo has puesto como int en vez de date?

Pero ¿tú que haces pensando?, calla y traduce esclavo  :whip:

Yo siempre guardo las fechas en formato TimeStamp, después con PHP lo convierto al formato que yo quiera. Podéis guardarlo como queráis ya que es irrelevante para nuestro cometido.


Quote from: ampos
¿Qué nombre le has dado a la base de datos? ¿Es irrelevante? Si no lo es, ¿se usa en alguno de los ficheros php?

En el fichero paypal.php, la primera linea, <form name="_donations" id="donar", lo de _donations y donar, ¿de donde salen? ¿son tb irrelevantes?

El nombre que le des a tu BD es el mismo que tienes que poner dónde aparezca la siguiente línea:

mysql_select_db("nombre_BD",$link);

Lo de _donations yo no lo cambiaría, para lo que nosotros lo vamos a utilizar funciona bien, además posiblemente (que no seguro) te cobren menos comisión. El resto de las opciones que ofrece PayPal es para poder añadir varios artículos y que tú puedas elegir en el momento del pago y cosas así, pero nosotros eso no lo vamos a utilizar.

msx

Quote from: ampos on 2011-Oct-16
ME VOY A CAGAR EN LA PUTA MADRE QUE PARIÓ AL WORD, QUE SE HA COLGAO Y HE PERDIO LA TRADUCCION CUANDO IBA POR LA MITAD. ME CAGO EN EL BILL GATES Y EN LA MADRE QUE LO PARIO. Y EN TOS LOS KE TRABAJAN EN MICROMIERDADELOSCOJONES.

:rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant:

Posiblemente la próxima vez que lo abras te lo recupere por donde ibas, no insultes todavía al probre Guillermo Puertas.

ampos

Quote from: msx on 2011-Oct-16
Quote from: ampos on 2011-Oct-16
ME VOY A CAGAR EN LA PUTA MADRE QUE PARIÓ AL WORD, QUE SE HA COLGAO Y HE PERDIO LA TRADUCCION CUANDO IBA POR LA MITAD. ME CAGO EN EL BILL GATES Y EN LA MADRE QUE LO PARIO. Y EN TOS LOS KE TRABAJAN EN MICROMIERDADELOSCOJONES.

:rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant:

Posiblemente la próxima vez que lo abras te lo recupere por donde ibas, no insultes todavía al probre Guillermo Puertas.

No, no lo recupró ni ná.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

msx

Quote from: ampos on 2011-Oct-16
Quote from: msx on 2011-Oct-16
Quote from: ampos on 2011-Oct-16
ME VOY A CAGAR EN LA PUTA MADRE QUE PARIÓ AL WORD, QUE SE HA COLGAO Y HE PERDIO LA TRADUCCION CUANDO IBA POR LA MITAD. ME CAGO EN EL BILL GATES Y EN LA MADRE QUE LO PARIO. Y EN TOS LOS KE TRABAJAN EN MICROMIERDADELOSCOJONES.

:rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant: :rant:


Posiblemente la próxima vez que lo abras te lo recupere por donde ibas, no insultes todavía al probre Guillermo Puertas.

No, no lo recupró ni ná.

La Madre que parió al Guillermo de los cojo...es  :rant:

ampos

QuoteBueno pues ya tenemos el archivo que hará de plataforma para pasar los datos desde GLBasic hasta PayPal. Cuando hagamos la llamada a este archivo tendremos que pasarle una serie de parámetro como son item_number (número de serie del dispositivo) y amount (precio del servicio).

Explica como seria el netwebend o lo ke sea del paypal.php.

Si no me equivoco, habria ke lanzar un netwebend, x lo ke luego habría ke habilitar en nuestro programa un botón que fuese "comprobar pago o registro", no?

check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

msx


ampos

Jeje, es que esas dudas me surgen conforme voy traduciendo... ya lo he visto. Pa la proxima duda, mejor me espero a terminarlo entero.

¡Que sueño me está dando, por Dios!  :happy:
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE