You are here

commerce_payment.workflows.yml in Commerce Core 8.2

modules/payment/commerce_payment.workflows.yml

File

modules/payment/commerce_payment.workflows.yml
View source
  1. payment_default:
  2. id: payment_default
  3. group: commerce_payment
  4. label: 'Default'
  5. states:
  6. new:
  7. label: 'New'
  8. authorization:
  9. label: 'Authorization'
  10. authorization_voided:
  11. label: 'Authorization (Voided)'
  12. authorization_expired:
  13. label: 'Authorization (Expired)'
  14. completed:
  15. label: 'Completed'
  16. partially_refunded:
  17. label: 'Partially refunded'
  18. refunded:
  19. label: 'Refunded'
  20. transitions:
  21. # Transitions are required by the state_machine module,
  22. # but aren't actually used by the payment API.
  23. authorize:
  24. label: 'Authorize payment'
  25. from: [new]
  26. to: authorization
  27. void:
  28. label: 'Void payment'
  29. from: [authorization]
  30. to: authorization_voided
  31. expire:
  32. label: 'Expire payment'
  33. from: [authorization]
  34. to: authorization_expired
  35. authorize_capture:
  36. label: 'Authorize and capture payment'
  37. from: [new]
  38. to: completed
  39. capture:
  40. label: 'Capture payment'
  41. from: [authorization]
  42. to: completed
  43. partially_refund:
  44. label: 'Partially refund payment'
  45. from: [completed]
  46. to: partially_refunded
  47. refund:
  48. label: 'Refund payment'
  49. from: [completed, partially_refunded]
  50. to: refunded
  51. payment_manual:
  52. id: payment_manual
  53. group: commerce_payment
  54. label: 'Manual'
  55. states:
  56. new:
  57. label: 'New'
  58. pending:
  59. label: 'Pending'
  60. completed:
  61. label: 'Completed'
  62. partially_refunded:
  63. label: 'Partially refunded'
  64. refunded:
  65. label: 'Refunded'
  66. voided:
  67. label: 'Voided'
  68. transitions:
  69. create:
  70. label: 'Create payment'
  71. from: [new]
  72. to: pending
  73. receive:
  74. label: 'Receive payment'
  75. from: [pending]
  76. to: completed
  77. partially_refund:
  78. label: 'Partially refund payment'
  79. from: [completed]
  80. to: partially_refunded
  81. refund:
  82. label: 'Refund payment'
  83. from: [completed, partially_refunded]
  84. to: refunded
  85. void:
  86. label: 'Void payment'
  87. from: [pending]
  88. to: voided