<prompt> Unda API ya Golang REST inayounganishwa na API ya Stripe ili kukubali malipo, kuhifadhi maelezo ya muamala katika hifadhidata ya MySQL, na kutuma arifa za barua pepe kwa wateja baada ya malipo mazuri.PLINFORMAT  <response>: nendakifurushi kikuukuagiza databasesqlgithub.comgin-gonicgin_ github.comgo-sql-drivermysqlgithub.comstripestripe-gov72gopkg.ingomail.v2aina muundo wa muamala Kitambulisho int json:idMfuatano wa Barua pepe ya Mteja json:barua pepe_ya_mtejaKiasi cha kuelea64 json:kiasiMfuatano wa sarafu json:fedhaMfuatano wa hali json:haliCreatedAt string json:created_atvar db sql.DBkosa kosafunc main db, err sql.Openmysql, username:passwordtcplocalhost:3306stripe_apiikiwa makosa ! nil hofuerr.Errorahirisha db.Fungastripe.Key ufunguo_wako_wa_siri_ya_ufunguor : gin.Defaultr.POSTmalipo, processPaymentr.Run:8080func processPaymentc gin.Context var shughuli Muamalac.BindJSONmuamalachargeParams : stripe.ChargeParamsKiasi: stripe.Int64int64transaction.Amount 100,Sarafu: stripe.Stringtransaction.Currency,Maelezo: stripe.StringMalipo kutoka transaction.CustomerEmail,malipo, makosa : malipo.MpyachargeParamsikiwa makosa ! nil c.JSON500, gin.Herror: err.Errorkurudishughuli.Hali kambacharge.HaliHifadhi MuamalamuamalasendEmailNotificationmuamalac.JSON200, gin.Hmessage: Malipo yamechakatwa kwa ufanisi, transaction: transactionfunc saveTransactionshughuli Muamala insertQuery, err : db. TayarishaINGIZA KWENYE miamala barua pepe_ya_mteja, kiasi, sarafu, hali THAMANI ?, ?, ?, ?ikiwa makosa ! nil hofuerr.Errorahirisha insertQuery.CloseinsertQuery.Exectransaction.CustomerEmail, transaction.Amount, transaction.Currency, transaction.Halifunc sendEmailNotificationmuamala Muamala mailer : gomail.NewMessagemailer.SetHeaderKutoka, transaction.CustomerEmailmailer.SetHeaderSubject, Malipo Yamepokelewamailer.SetBodytexthtml, Asante kwa malipo yako ya strconv.FormatFloattransaction.Amount, f, 2, 64 transaction.Currency.dialer : gomail.NewDialersmtp.gmail.com, 587, your_email_passwordkosa : dialer.DialAndSendmtuma barua pepeikiwa makosa ! nil hofuerr.Error 