All URIs are relative to https://api.helloasso.com/v5
Method | HTTP request | Description |
---|---|---|
organizationsOrganizationSlugCheckoutIntentsCheckoutIntentIdGet | GET /organizations/{organizationSlug}/checkout-intents/{checkoutIntentId} | Récupérer une intention de paiement |
organizationsOrganizationSlugCheckoutIntentsPost | POST /organizations/{organizationSlug}/checkout-intents | Initialisation d'un Checkout |
HelloAssoApiV5ModelsCartsCheckoutIntentResponse organizationsOrganizationSlugCheckoutIntentsCheckoutIntentIdGet(organizationSlug, checkoutIntentId, opts)
Récupérer une intention de paiement
Retourne aussi la commande associée. Uniquement dans le cas ou le paiement est autorisé.<br/><br/><b>Votre clientId doit avoir ces autorisations : </b> <br/> Checkout<br/><br/>
import HelloAssoApi from 'hello_asso_api';
let defaultClient = HelloAssoApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2
let OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new HelloAssoApi.CheckoutApi();
let organizationSlug = "organizationSlug_example"; // String |
let checkoutIntentId = 56; // Number |
let opts = {
'withFailedRefundOperation': false // Boolean |
};
apiInstance.organizationsOrganizationSlugCheckoutIntentsCheckoutIntentIdGet(organizationSlug, checkoutIntentId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
organizationSlug | String | ||
checkoutIntentId | Number | ||
withFailedRefundOperation | Boolean | [optional] [default to false] |
HelloAssoApiV5ModelsCartsCheckoutIntentResponse
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
HelloAssoApiV5ModelsCartsInitCheckoutResponse organizationsOrganizationSlugCheckoutIntentsPost(organizationSlug, opts)
Initialisation d'un Checkout
Pour tout savoir sur Checkout consultez d'abord notre <a href="https://dev.helloasso.com/docs/description\">documentation</a><br/><br/><b>Votre clientId doit avoir ces autorisations : </b> <br/> Checkout<br/><br/>
import HelloAssoApi from 'hello_asso_api';
let defaultClient = HelloAssoApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2
let OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new HelloAssoApi.CheckoutApi();
let organizationSlug = "organizationSlug_example"; // String |
let opts = {
'helloAssoApiV5ModelsCartsInitCheckoutBody': new HelloAssoApi.HelloAssoApiV5ModelsCartsInitCheckoutBody() // HelloAssoApiV5ModelsCartsInitCheckoutBody |
};
apiInstance.organizationsOrganizationSlugCheckoutIntentsPost(organizationSlug, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
organizationSlug | String | ||
helloAssoApiV5ModelsCartsInitCheckoutBody | HelloAssoApiV5ModelsCartsInitCheckoutBody | [optional] |
HelloAssoApiV5ModelsCartsInitCheckoutResponse
- Content-Type: application/json-patch+json, application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json