These are chat archives for mirumee/saleor

5th
Jan 2019
Emmanuel Perez
@EmmanuelPerezP
Jan 05 13:49
guys im having a little trouble understanding how to implement the paypal api for checkout, in my country we cant use braintree so i have to use paypal,
so far from what i could understand i have to implement the server integration right? paypal server integration the flow in that website is pretty simple but i dont see how to intergrate it on saleor,
i have to generate the payment ID from the server side (using the paypal sdk) and request it with a call to saleor from the paypal button click, but what api request do i have to do?, honestly im not familiar with graphql and from what i've seen there is not an api call for /my-api/create-payment/ in saleor that takes no arguments and returns an id, also i cant figure out how i would execute the payment once i get the payment id, how (what url) to make a post request to saleor with the paymentID and the payerID arguments through the form (im not using SPA) (or maybe theres another way?) and then how do i get the order to generate the payment object to call the paypal api and execute the payment?, thanks for any help
Emmanuel Perez
@EmmanuelPerezP
Jan 05 13:54
btw i tried following the https://docs.getsaleor.com/en/latest/guides/payments.html guide but its not clear to me what functions in the paypal payment flow map to those in the guide and what urls i have to use, its probably pretty simple but i couldnt figure it out...