> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slm.m1amdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Boleto Bancario for One-Time Transactions

For the payment method Boleto Bancário, the `Transaction` status after an `authCapture()` call is `Authorized`. That means that Subscribe has validated the `fiscal number` and will prepare the transaction for the payment processor. After the payment processor has accepted the fiscal number in the payment method, the transaction status changes to `AuthorizedPending`. In response, the payment processor returns a URL in the `TransactionStatus` object.

Send the customer this URL, which points to further instructions from the payment processor for completing the transaction. When the transaction is complete, the payment processor notifies Subscribe, which updates the status to `Captured` or `Cancelled`, depending on the success or failure of the transaction.

## Create a Transaction with Boleto Bancário as the payment method, and set the fiscal number

```

 $txn = new Transaction();
  
 // populate the transaction as shown in the previous example
 // When associating a customer account with this transaction, 
 // ensure that the account has language preference indicated. 
 // This will set the language used in the payment instructions 
 // displayed to the customer
 $tx->setAccount($account);
  
 $paymentMethod = new PaymentMethod();
  
 // For Boleto payment make sure country is specified in the address
  
 $paymentMethod->setBillingAddress($address); 
  
 $paymentMethod->setType('Boleto');
 $blt = new Boleto();
 $blt->setFiscalNumber('123456789');
 $paymentMethod->setBoleto($blt);
  
 $tx->setSourcePaymentMethod($paymentMethod);
 $sendEmailNotification=false;
  
 $response = $tx->authCapture($sendEmailNotification);
  
 if($response['returnCode'] ==200) {
    if($tx->statusLog[0]->status=='AuthorizedPending') {
       print "Successful\n";
       display(print $tx->statusLog[0]->status->boletoStatus->uri);
    }
    else if($tx->statusLog[0]->status=='Cancelled') {
       // The transaction did not go through 
    }
 }
```

**Note:** For Boleto Bancário, be sure to specify the country in the billing address, and the language preference in the customer account. Those two attributes determine the language for Subscribe customer notifications (for payment instructions, for example).

**Parent topic:**[Working with One-Time Transactions](../topics/ProgGuide_Transactions)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.