Skip to main content

payment_method

Function payment_method 

Source
pub fn payment_method() -> String
Expand description

Generate a random payment method

Examples found in repository?
examples/business_finance.rs (line 90)
9fn main() {
10    println!("=== Faker-Rust Business & Finance Examples ===\n");
11
12    // Banking
13    println!("🏦 BANKING:");
14    println!("  Bank Name:          {}", bank::name());
15    println!("  SWIFT/BIC:          {}", bank::swift_bic());
16    println!("  IBAN:               {}", bank::iban());
17    println!("  Account Number:     {}", bank::account_number());
18    println!();
19
20    // Credit Cards
21    println!("💳 CREDIT CARDS:");
22    println!("  Card Number:        {}", business::credit_card_number());
23    println!("  Card Type:          {}", business::credit_card_type());
24    println!("  Expiry Date:        {}", business::credit_card_expiry_date());
25    println!();
26
27    // Company
28    println!("🏢 COMPANIES:");
29    println!("  Company Name:       {}", company::name());
30    println!("  Industry:           {}", company::industry());
31    println!("  Suffix:             {}", company::suffix());
32    println!("  Catch Phrase:       {}", company::catch_phrase());
33    println!("  BS:                 {}", company::bs());
34    println!();
35
36    // Industry Segments
37    println!("📊 INDUSTRY SEGMENTS:");
38    println!("  Industry:           {}", industry_segments::industry());
39    println!("  Sector:             {}", industry_segments::sector());
40    println!("  Subsector:          {}", industry_segments::subsector());
41    println!();
42
43    // Commerce
44    println!("🛒 COMMERCE:");
45    println!("  Department:         {}", commerce::department());
46    println!("  Product Name:       {}", commerce::product_name());
47    println!("  Price:              {}", commerce::price(None, None));
48    println!("  Promotion Code:     {}", commerce::promotion_code());
49    println!();
50
51    // Currency
52    println!("💰 CURRENCY:");
53    println!("  Currency Name:      {}", currency::name());
54    println!("  Currency Code:      {}", currency::code());
55    println!("  Currency Symbol:    {}", currency::symbol());
56    println!();
57
58    // Invoice
59    println!("📄 INVOICE:");
60    println!("  Reference:          {}", invoice::reference());
61    println!("  Amount:             {}", invoice::amount());
62    println!("  Line Item:          {}", invoice::line_item());
63    println!();
64
65    // Blockchain & Crypto
66    println!("🔗 BLOCKCHAIN:");
67    println!("  Bitcoin Address:    {}", blockchain::bitcoin::address());
68    println!("  Ethereum Address:   {}", blockchain::ethereum::address());
69    println!("  Tezos Account:      {}", blockchain::tezos::account());
70    println!();
71
72    // Finance
73    println!("� FINANCE:");
74    println!("  Stock Ticker:       {}", finance::stock_ticker());
75    println!("  Market Index:       {}", finance::market_index());
76    println!("  Currency Pair:      {}", finance::currency_pair());
77    println!();
78
79    // Stripe
80    println!("� STRIPE PAYMENTS:");
81    println!("  Plan:               {}", stripe::plan());
82    println!("  Product:            {}", stripe::product());
83    println!("  Subscription Status: {}", stripe::subscription_status());
84    println!();
85
86    // Subscription
87    println!("� SUBSCRIPTION:");
88    println!("  Plan:               {}", subscription::plan());
89    println!("  Status:             {}", subscription::status());
90    println!("  Payment Method:     {}", subscription::payment_method());
91    println!();
92}