Only works with subscription products. For one time purchases, we suggest WooCommerce Pagseguro, by Claudio Sanches.
This plugin uses the Recorrência Personalizada method and lets WooCommerce Subscriptions take care of making the calls to generate the charges on PagSeguro.
This plugin accepts one subscription purchase at a time during checkout. (The option “Allow multiple subscriptions and products to be purchased simultaneously” must be turned off on WooCommerce Subscriptions)