Well the pin out seems a bit confusing as all the pins starting with R seem to indicate forward all the pins starting with L seem to indicate reverse, so you will have to make sure you don't enable both at the same time if you intend to use both directions.
So holding the controller in front of you with the green connector on the furthest side away from you the connection for the gpio is on the 8 pins like this.
7. VCC: +5 V power output, 5V power supply connection with the microcontroller
Do not connect this to your pi
8. GND: signal common low end
Connect to any gpio gnd pin
5. R_IS: forward drive current alarm output
Do not connect to pi for now may be 5v output which will damage you pi gpio
3. R_EN: forward drive enable input, high-level enable, low level off
Connect to one of the output gpio pin to enable forward for motor
1. RPWM: forward level or PWM signal input, active high
Connect to one of the output gpio pin to control forward speed
6. L_IS: forward drive current alarm output
Do not connect to pi for now may be 5v output which will damage you pi gpio
4. L_EN: forward drive enable input, high-level enable, low level off
Connect to one of the output gpio pin to enable reverse
2. LPWM: forward level or PWM signal input, active high
Connect to one of the output gpio pin to control reverse speed
So to control 1 motor in both directions you need 4 gpio output pins and one ground pin.
This is all based on the picture of the board
and this information taken from the web page
1.RPWM: forward level or PWM signal input, active high
2.LPWM: Reverse level or PWM signal input, active high
3.R_EN: forward drive enable input, high-level enable, low level off
4.L_EN: Reverse drive enable input, high-level enable, low level off
5.R_IS: forward drive current alarm output
6.L_IS: Reverse drive current alarm output
7.VCC: +5 V power output, 5V power supply connection with the microcontroller
8.GND: signal common low end
Hope that helps, but I would check the board you have in your hands matches what the web page indicates before connecting to the pi, Its down to you to check its all correct as I don't have the board in my hands to do any testing.