@@ -339,7 +339,9 @@ export interface GetPaymentStatusOutput extends PaymentProviderOutput {
339339 */
340340export type WebhookActionData = {
341341 /**
342- * The associated payment session's ID.
342+ * The ID of the payment session in Medusa.
343+ * Make sure to store this ID in the third-party payment provider
344+ * to be able to retrieve the payment session later.
343345 */
344346 session_id : string
345347
@@ -356,7 +358,7 @@ export type WebhookActionData = {
356358 */
357359export type WebhookActionResult = {
358360 /**
359- * Normalized events from payment provider to internal payment module events .
361+ * The action that was performed so that Medusa can handle it internally .
360362 */
361363 action : PaymentActions
362364
@@ -392,7 +394,7 @@ export interface IPaymentProvider {
392394
393395 /**
394396 * This method is used when creating an account holder in Medusa, allowing you to create
395- * the equivalent account in the third-party service . An account holder is useful to
397+ * the equivalent account in the third-party payment provider . An account holder is useful to
396398 * later save payment methods, such as credit cards, for a customer in the
397399 * third-party payment provider using the {@link savePaymentMethod} method.
398400 *
@@ -444,7 +446,7 @@ export interface IPaymentProvider {
444446
445447 /**
446448 * This method is used when updating an account holder in Medusa, allowing you to update
447- * the equivalent account in the third-party service .
449+ * the equivalent account in the third-party payment provider .
448450 *
449451 * The returned data will be stored in the account holder created in Medusa. For example,
450452 * the returned `id` property will be stored in the account holder's `external_id` property.
@@ -488,7 +490,7 @@ export interface IPaymentProvider {
488490
489491 /**
490492 * This method is used when an account holder is deleted in Medusa, allowing you
491- * to also delete the equivalent account holder in the third-party service .
493+ * to also delete the equivalent account holder in the third-party payment provider .
492494 *
493495 * @param data - Input data including the details of the account holder to delete.
494496 * @returns The result of deleting the account holder. If an error occurs, throw it.
0 commit comments