I used a VISA number 4111111111111111, Zip code 46214, and card code 900, yet I still get the error “Payment was declined – please try another card.” Isn’t there a log where we can find out exactly what is going wrong?
Right, I’ll post there. Thank you.
I figured out the answer, so I thought I’d post it. My code looks like this now and it works:
add_action( 'processed_subscription_payment', 'updatedays', 10, 2 );
function updatedays($user_id, $subscription_key)
{
//do what I need to the sub key
}
There really needs to be more examples on the Woothemes documentation though..