← All changes
|
app/Modules/PaymentMethods/Core/AbstractSubscriptionModule.php
+11
-0
1.6.3
→
1.6.5
View file →
| @@ -84,8 +84,19 @@ | ||
| 84 | 84 | { |
| 85 | 85 | // cancel the subscription on the vendor side, implement on the child class |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | + /** | |
| 89 | + * Pull the subscription's remote state and repair the local rows to match. | |
| 90 | + * | |
| 91 | + * Implementations may declare extra OPTIONAL parameters for pre-fetched | |
| 92 | + * vendor payloads (e.g. PayPal accepts the already-fetched subscription and | |
| 93 | + * transaction list so a webhook costs one remote pull). Callers typed | |
| 94 | + * against this base class must pass only the subscription model. | |
| 95 | + * | |
| 96 | + * @param Subscription $subscriptionModel | |
| 97 | + * @return Subscription|\WP_Error | |
| 98 | + */ | |
| 88 | 99 | public function reSyncSubscriptionFromRemote(Subscription $subscriptionModel) |
| 89 | 100 | { |
| 90 | 101 | return new \WP_Error( |
| 91 | 102 | 'not_implemented', |