sCampaign->GetPaymentMethod(PaymentMethod::BITCOIN); } catch (NotFoundException $e) { throw new RouterException("No such payment method found."); } if($sPaymentRequest->sCurrency != "btc") { $sAmount = Currency::Convert("btc", $sPaymentRequest->sCurrency, $sPaymentRequest->sAmount); } else { $sAmount = $sPaymentRequest->sAmount; } $sPageContents = NewTemplater::Render("payment/bitcoin", $locale->strings, array( "address" => $sPaymentMethod->sAddress, "amount" => Currency::Format("btc", $sAmount), "done-url" => "/pay/{$sPaymentRequest->sSubscription->sEmailAddress}/{$sPaymentRequest->sId}/{$sPaymentRequest->sKey}/bitcoin/done" ));