dualcube / moodle-enrol_stripepayment

Moodle Stripe Payment Collector
16 stars 27 forks source link

In stripe dashboard, payment description no longer shows course name #114

Closed jimcrammond closed 1 year ago

jimcrammond commented 1 year ago

In the 3.2.1 version of the plugin, in the payments section of the stripe dashboard, the Description field contains the course name. It was therefore easy to see which courses people are buying. With the 3.3.4 version, the Description field is filled with the payment intent ID. This is not at all helpful.

jimcrammond commented 1 year ago

It should be noted that in the POST /v1/checkout/sessions call, the request body does contain line_items -> description that is set to the coursename, but the response body has no description field

moumitahalder commented 1 year ago

@jimcrammond, we will add this support in our next update.

jimcrammond commented 1 year ago

Adding the following argument to the Checkout Session create() call will resolve this:

'payment_intent_data' => ['description' => $description ],