Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 4.12.3
-
Fix Version/s: None
-
Component/s: Modules
-
Labels:None
Description
Cancelling a service that uses TheSSLStore module appears to attempt to request a refund from TheSSLStore every time the request is made. However, TheSSLStore only allows refunds on certificates within 30 days.
When a service should no longer be renewed, a common practice is to schedule cancellation at the end of the term. On the scheduled cancellation date, Blesta tries to cancel the service through the module. The module makes a call via TSS API to request a refund. No refund can be given so the request fails and the service is not cancelled in Blesta.
Either the refund request should not be sent if it's been more than 30 days, or Blesta should ignore an error response from the refund request and cancel the service in Blesta anyway.
Example Input:
82946195|ssl-refund-request
O:27:"order_refundrequest_request":10:{s:13:"CustomOrderID";N;s:18:"TheSSLStoreOrderID";s:7:"1628497";s:15:"ResendEmailType";N;s:11:"ResendEmail";N;s:12:"RefundReason";s:18:"Requested by User!";s:15:"RefundRequestID";N;s:14:"ApproverMethod";N;s:11:"DomainNames";N;s:12:"SerialNumber";N;s:11:"AuthRequest";O:10:"apirequest":9:{s:11:"PartnerCode";s:0:"";s:9:"AuthToken";s:0:"";s:11:"ReplayToken";s:0:"";s:9:"UserAgent";s:0:"";s:7:"TokenID";s:0:"";s:9:"TokenCode";s:0:"";s:9:"IPAddress";s:0:"";s:20:"IsUsedForTokenSystem";b:0;s:5:"Token";s:0:"";}}
Example Output:
82946195|ssl-refund-response
O:14:"order_response":60:{s:14:"PartnerOrderID";s:19:"ATR82946195R2605986";s:13:"CustomOrderID";s:23:"TinyOrder-5e892bac769d1"
[ REDACTED PART OF THE RESPONSE ]
"SerialNumber";N;s:25:"CertificateStartDateInUTC";s:22:"12/26/2019 12:00:00 AM";s:23:"CertificateEndDateInUTC";s:21:"1/24/2021 12:00:00 PM";s:17:"PurchaseDateInUTC";s:21:"12/26/2019 7:36:14 PM";s:13:"PollDateInUTC";s:0:"";s:12:"AuthResponse";O:8:"stdClass":5:{s:19:"InvokingPartnerCode";s:8:"82946195";s:7:"Message";a:1:
s:11:"ReplayToken";s:28:"SSLSTORE-Blesta5ff5de87b295c";s:9:"Timestamp";s:20:"1/6/2021 11:00:07 AM";s:7:"isError";b:1;}s:15:"OrderExpiryDate";s:20:"1/24/2021 7:00:00 AM";s:20:"OrderExpiryDateInUTC";s:21:"1/24/2021 12:00:00 PM";s:11:"ProductCode";s:8:"rapidssl";s:17:"TSSOrganizationId";i:1987698;s:16:"wildcardSANCount";i:0;}
Some values in the API request above were removed or modified to remove personal details and may not match input/output if they should have.