Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions includes/class-wc-gateway-payfast.php
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,14 @@ public function cancel_subscription_listener( $subscription ) {
if ( empty( $token ) ) {
return;
}
$subscription_id = $subscription->get_id();
$this->log(
sprintf(
'Cancellation request for token %s for subscription %d sent to Payfast',
sanitize_key( $token ), // Should be a hyphen separated alphanumeric string.
$subscription_id
)
);
$this->api_request( 'cancel', $token, array(), 'PUT' );
}

Expand Down
Loading