> For the complete documentation index, see [llms.txt](https://doc.simax.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.simax.fr/technique/paiement-paypal-sur-le-site-php/exemple-de-parametrage-simple.md).

# Exemple de paramétrage simple

Formulaire Facture avec colonne :

&#x20;

\- Reference

\- Date heure de creation

\- Montant (Modèle Monétaire)

\- Bouton "payer" qui lance l'action particulière "Paiement Paypal"

\- un séparateur "Information Paypal" invisible avec les champs :

&#x20;           \- devise                                  (Texte)

&#x20;           \- id Paypal                             (Texte)

&#x20;           \- mdp Paypal              (Mot de passe)

&#x20;           \- Signature Paypal      (texte)

&#x20;           \- Sandbox Paypal       (vrai/faux)

&#x20;           \- Token Paypal                       (texte)

&#x20;           \- ID payeur Paypal      (texte)

&#x20;           \- Paiement prêt                      (vrai/faux)

\- un séparateur "Transaction Paypal" visible

&#x20;           \- ID Transaction (formule : si (ETATPAIEMENTPAYPAL(\[montant], \[devise],

&#x20;                       \[id paypal], \[mdp paypal], \[signature paypal],

&#x20;                       \[token paypal], \[id payeur paypal], \[sandbox paypal])=0) et \[paiement pret]=vrai

&#x20;                       , EXECUTEPAIEMENTPAYPAL(\[montant], \[devise],

&#x20;                       \[id paypal], \[mdp paypal], \[signature paypal],

&#x20;                       \[token paypal], \[id payeur paypal], \[sandbox paypal]))

&#x20;

Modifier l'action particuliere paiement paypal

\- mettre EUR en valeur par defaut du parametre "devise"

&#x20;                     &#x20;

&#x20;

Faire un automatisme non transactionnel sur l'action paiement paypal avec les operations sur colonnes suivantes :

\- token paypal de facture = valeurparametre("token transaction paypal")

\- id payeur paypal de facture = valeurparametre("identifiant payeur")

\- id paypal de facture = valeurparametre("identifiant api paypal")

\- mdp paypal de facture = valeurparametre("mot de passe api paypal")

\- signature paypal de facture = valeurparametre("signature api paypal")

\- sandbox paypal de facture = valeurparametre("Sandbox API Paypal")

\- paiement pret de facture = vrai

\- devise de facture = valeurparametre("devise")

&#x20;

Créer facture

Entrer un montant

Clic sur payer

\=> Une fois le cycle terminer sans erreur, le champ ID Transaction contient l'identifiant unique de la transaction paypal.

&#x20;

Pour que le paiement fonctionne correctement, l'accès au client web doit se faire via URL externe (et non pas par utilisation d'un réseau local), dans le cas contraire, le paiement ne pourra s'effectuer.

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.simax.fr/technique/paiement-paypal-sur-le-site-php/exemple-de-parametrage-simple.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
