> ## 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.

# BOKU Static Pricing Transactions

To use BOKU’s Static Pricing, create a Service ID on the BOKU website before creating a Transaction. use the Subscribe `setMerchantServiceIdentifier` call to pass in the corresponding Service ID.

## Create a Transaction using BOKU Static Pricing

```

 $txn = new Transaction;
 //Populate this Transaction as shown in previous examples.
 
 $criteria = new Criteria();
 $criteria->setCurrency('USD');
 $criteria->setCountryCode('US');
 $criteria->setStaticPriceIncSalesTax(1.00);
 $criteria->setMerchantServiceIdentifier('14246ab82c24e44bf9862406');
 
 $paymentProvider = new PaymentProvider();
 $paymentProvider->setName('BOKU');
 $criteria->setPaymentProvider($paymentProvider);
 
 $carrierBilling = new CarrierBilling();
 $carrierBilling->priceCriteria($criteria);
 
 $paymentMethod = new PaymentMethod();
 $paymentMethod->setType('CarrierBilling');
 $paymentMethod->setCarrierBilling($carrierBilling);
 
 $txn->setSourcePaymentMethod($paymentMethod);
 
 $response = $txn->authCapture();
 if($response['returnCode'] ==200)
 {
 if($tx->statusLog[0]->status=='AuthorizedPending')
 {
 print "Successful\n";
 display(print txn->statusLog[0]->status->
 carrierBillingStatus->buyUrl);
 }
 }
 else if($tx->statusLog[0]->status=='Cancelled')
 {
 // The transaction did not go through
 }
```

**Parent topic:**[Using Carrier Billing for One-Time Transactions](../topics/Using_Carrier_Billing_fo)


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