Connecteur PayPal

132 views
Skip to first unread message

jd.fa...@gmail.com

unread,
Nov 25, 2014, 9:36:01 AM11/25/14
to suppor...@runmyprocess.com
Est-ce que quelqu'un aurait un exemple d'un connecteur et processus pour l'intégration de PayPal dans RunMyProcess ?

thoshino

unread,
Nov 26, 2014, 12:06:02 PM11/26/14
to suppor...@runmyprocess.com
replied in support tool, copying same info for later reference.
===
I can give you 1 example config on RMP, based on cURL example.
I hope this will help you make other API calls, transforming cURL example to RMP connector is very easy.

curl -v https://api.sandbox.paypal.com/v1/payments/payment \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {accessToken}' \
-d '{
"intent":"sale",
"redirect_urls":{
"return_url":"http://<return URL here>",
"cancel_url":"http://<cancel URL here>"
},
"payer":{
"payment_method":"paypal"
},
"transactions":[
{
"amount":{
"total":"7.47",
"currency":"USD"
},
"description":"This is the payment transaction description."
}
]
}'

To make this call in RMP, you need to set 
[Provider]
URL:
https://api.sandbox.paypal.com/
Authentication scheme:
Custom
Bearer
${access_token}
[Connector]
URL:
v1/payments/payment
Method:
POST
Accept media type:
application/json
Content-Type:
application/json
Content:
{
"intent":"sale",
"redirect_urls":{
"return_url":"http://<return URL here>",
"cancel_url":"http://<cancel URL here>"
},
"payer":{
"payment_method":"paypal"
},
"transactions":[
{
"amount":{
"total":"${amount_total}",
"currency":"${amount_currency}"
},
"description":"This is the payment transaction description."
}
]
}

In above example you can send
access_token, amount_total, and amount_currency as variables from process.

Jean-Daniel Faessler

unread,
Dec 7, 2014, 12:56:49 PM12/7/14
to suppor...@runmyprocess.com, thos...@runmyprocess.com

Bonjour,


Merci pour le mail ci-dessous. J'ai maintenant configurer mon connecteur et le compte PayPal avec une application MyRest App et j'ai testé le connecteur. Le résultat que j'obtiens est le suivant :


Remote server https://api.sandbox.paypal.com/v1/payments/payment did not send a response


J'ai cherché à différents endroits d'où pouvait provenir le problème mais je n'ai rien trouvé. Pouvez-vous me donner une piste.


Merci d'avance.


Cordialement,


Jean-Daniel



De : thoshino <thos...@runmyprocess.com>
Envoyé : mercredi 26 novembre 2014 18:06
À : suppor...@runmyprocess.com
Objet : [supportforum:5674] Re: Connecteur PayPal
 
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/90E5AEOdFI8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/bd681d05-df18-430a-9e83-94817b0926ed%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Jean-Daniel Faessler

unread,
Dec 8, 2014, 5:06:27 AM12/8/14
to suppor...@runmyprocess.com, thoshino

Rebonjour,


Je pense que mon problème provient du fait que je n'ai pas obtenu de token, pensant que le secret était le token. J'ai donc fait un connecteur pour obtenir le token, en mentionnant :


1) pour le provider :

api.sandbox.paypal.com/
authentification : google 2l Oauth
consumer key : client ID
Secret : secret

2) pour le connecteur
le provider ci-dessus
url : /v1/oauth2/token
Post
application/json
content :
application/json
"grant_type=client_credentials"


selon l'exemple paypal ci-dessous :
curl https://api.sandbox.paypal.com/v1/oauth2/token \
 -H "Accept: application/json" \
 -H "Accept-Language: en_US" \
 -u "<Client-Id>:<Secret>" \
 -d "grant_type=client_credentials"

En testant le connecteur, j'obtiens l'erreur suivante :

Invalid JSON result

Je n'arrive pas à trouver où j'ai fait une ou des erreurs.

Merci pour votre aide.

Cordialement,

Jean-Daniel




De : Jean-Daniel Faessler de la part de Jean-Daniel Faessler <jd.fa...@go2egov.ch>
Envoyé : dimanche 7 décembre 2014 18:56
À : suppor...@runmyprocess.com; thos...@runmyprocess.com
Objet : RE: [supportforum:5674] Re: Connecteur PayPal
 

jd.fa...@gmail.com

unread,
Jan 13, 2015, 10:33:59 AM1/13/15
to suppor...@runmyprocess.com
Takafumi, I finally managed to get a return of PayPal, or I get the URL to launch the payment. By cons I do not understand how I can run a URL in RunMyProcess. Is it that you do not have an example of a process already realized for PayPal? Thank you in advance.

thoshino

unread,
Jan 23, 2015, 3:25:41 PM1/23/15
to suppor...@runmyprocess.com, jd.fa...@gmail.com
Good! 
Can you explain what you want to test first?
Get authentication and make payment?

How many APis you need, what is the api you called, and what is in the return data from Paypal?

If it is the access_token, then you should be ready to make payment, but I think you need some kind of "seller" target.
Users make payment to a seller, correct? or do I miss understand something...

We do not have example scenario on how to use Paypal, but Paypal developer site should have such info, somewhere.

Best regards,

Taka


Reply all
Reply to author
Forward
0 new messages