magento 1.9 – How to export a transaction ID and a credit card approval in CSV format

I wrote a script that exports a CSV file to a directory. The CSV contains the information of the order, once the order has been placed. The problem I encounter is the export of transaction ID information and CC approval. Does anyone have any idea on how to collect this information?

Below, you can see the two vars trying to collect $ paymentId and $ paymentApproval information.

public service sales_order_place_after ($ observer) {
$ order = $ observer-> getEvent () -> getOrder ();
$ quote_id = $ order-> getQuoteId ();

$ orderId = $ order-> getEntityId ();
$ order = Mage :: getModel ('sales / order') -> load ($ orderId);

$ text = "";
$ fp = fopen (hide / directory / for / question). $ order-> getIncrementId () .txt, # w;);

// invoice information
$ billingAddress = $ order-> getBillingAddress ();
$ countryCode = $ billingAddress-> getCountryId ();
$ country = Mage :: getModel ('directory / country') -> loadByCode ($ countryCode);
$ countryName = $ country-> getName ();

// ship to billing information
$ shippingAddress = $ order-> getShippingAddress ();
$ shippingAddressCountryCode = $ shippingAddress-> getCountryId ();
$ shippingAddressCountry = Mage :: getModel ('directory / country') -> loadByCode ($ shippingAddressCountryCode);
$ shippingAddressCountryName = $ shippingAddressCountry-> getName ();

$ query = "Collect";
$ shippingDescription = $ order-> getShippingDescription ();
if (substring ($ shippingDescription, 0, strlen ($ query)) !! == $ query) {
$ shippingCode = "PPD";
$ shippingAgentCode = "UPS";
$ shippingServiceCode = explode ("- UPS", $ shippingDescription)[1];
$ carrierAccountNumber = "";
$ shippingAmount = $ shippingAddress-> getShippingAmount ();
} other {
// Delivery information
$ shippingCode = "COL";
$ shippingAgentCode = "";
$ shippingServiceCode = "";

$ order_id = $ order-> getId ();

$ carrierAccountNumber = Mage :: getSingleton (& # 39; checkout / session & # 39;) -> getCollectmemoComment ();
$ carrierAccountNumber = $ carrierAccountNumber[$quote_id];
$ shippingAmount = 0;
}

// Order information
$ orderDate = $ order-> getCreatedAt ();
$ orderDateToShow = date (# n / j / Y), strtotime ($ orderDate));


// transaction information
$ orderTransactionDateTime = date (# n / j / y h: i: s A, strtotime ($ orderDate));

// Account information
$ userEmail = $ order-> getCustomerEmail ();

// Payment Information
$ payment = $ order-> getPayment ();
$ paymentCcType = $ payment-> getData (& # 39; cc_type & # 39;);
$ paymentPoNumber = $ payment-> getData (& # 39; po_number & # 39;);
$ paymentPoComment = $ payment-> getData (& # 39; po_comment & # 39;);
$ paymentIdTwo = $ payment-> getCcTransId ();
$ poRefferenceNumber = $ payment-> getData (& # 39; po_ref_number & # 39;);


$ paymentId = $ payment-> getCcTransId ();
// $ paymentId = $ payment-> getData (& # 39; cc_trans_id & # 39;);

$ paymentApproval = $ payment-> getData (& # 39; cc_approval & # 39;)
// $ paymentApproval = $ payment-> getCcApproval ();


$ paymentCcStatus = "";


if ($ paymentPoNumber! = "") {
$ paymentCcStatus;
} other {
$ paymentCcStatus = "approved";

}

if ($ paymentCcType == "VI") {
$ paymentCcType = "Visa";
} else if ($ paymentCcType == "MC") {
$ paymentCcType = "MasterCard";
} else if ($ paymentCcType == "AE") {
$ paymentCcType = "American Express";
} else if ($ paymentCcType == "DI") {
$ paymentCcType = "Discover";
}

$ item_incrementer = 1;
foreach ($ order-> getAllItems () as $ itemId => $ item) {
$ fields = array ($ billingAddress-> getCompany (), $ billingAddress-> getFirstname (), $ billingAddress-> getMiddlename (), $ billingAddress-> getLastname (), $ billingAddress-> getStreet (1), $ billingAddress-> getStreet (2), $ billingAddress-> getCity (), $ billingAddress-> getRegion (), $ billingAddress-> getPostcode (), $ countryName, $ billingAddress-> getTelephone (), $ userEmail, $ shippingAddress-> getCompany () , $ shippingAddress-> getFirstname (), $ shippingAddress-> getMiddlename (), $ shippingAddress-> getLastname (), $ shippingAddress-> getStreet (1), $ shippingAddress-> getStreet (2), $ shippingAddress-> getCity () , $ shippingAddress-> getRegion (), $ shippingAddress-> getPostcode (), $ shippingAddressCountryName, $ shippingAddress-> getTelephone (), $ shippingCode, $ shippingAgentCode, $ shippingServiceCode, $ carrierAccountNumber, $ orderActive>, getShippingAmount, $ paymentPoComment, $ poRefferenceNumber, $ order-> getIncrementId (), $ orderDateToShow, $ paymentC cStatus, $ paymentCcType, $ paymentApproval, $ paymentId, $ paymentIdTwo, $ order-> getGrandTotal (), $ orderTransactionDateTime, $ item_incrementer, $ item-> getSku (), $ item-> getQtyOrdered (), $ item-> getPrice () ));


// echo & # 39;
& # 39 ;, var_dump ($ fields), & # 39;

& # 39 ;;

$ field_incrementer = 0;
foreach ($ fields as $ field) {
if ($ field_incrementer> 0) {
$ text. = " t";
}
$ text. = $ field;

$ field_incrementer ++;
}

$ text. = " r n";

$ item_incrementer ++;
}

fwrite ($ fp, $ text);

fclose ($ fp);
}

[WTS] UK and US Reseller SSD VPS starting at $ 5.5 per month | Linux and Windows RDP

VEEBLE (www.veeble.org)

Veeble offers versatile web services, including virtual private servers, dedicated servers, remote desktop solutions, and web hosting. In addition, we are building a narrower and more reliable Web with complementary services to the fastest technology. We offer affordable 24×7 managed services that promise trouble-free hosting.

Presentation VPS Reseller, the ultimate VPS package for you.

»Create and delete VPS at any time
You can deploy Linux and Windows VPS at any time from the Control Panel using the available resources. You can also delete the SMV without hassle.

»Assign VPS to users you create
You can create user accounts and assign the deployed VPS to these accounts. Users can connect and manage the VPS via a separate control panel.

»Control panel with white label
You will be able to provide a control panel with a white label to your users. All you need is a domain name and we will help you with the blank configuration.

»Linux and Windows operating systems
You can deploy VPS with the Linux and Windows operating systems readily available in the Control Panel. There are no separate license fees for Windows operating systems.

»Free connectivity at 1 Gbps
You can benefit from a free 1 Gbps bandwidth on all deployed VPS.

»Multiple locations
Create VPS in the United Kingdom and the United States.

————————————-
VPS Reseller Packages
————————————-

»Number of VPS: 4 and more
Total number of processor cores: 8 and over
»Total RAM: 4 GB and more
»Total disk: 40 GB and more
»Number of IPs: 4 and over
Total bandwidth: 4TB and more per month in a 1Gbps port
»US & UK Locations

Starting at only $ 25/month

Set up and order now

————————————————– ————————————————– ————————————————– ————————————————– —————-

Regular VPS packages

Openvz VPS – http://veeble.org/vps/openvz
Xen VPS – http://veeble.org/vps/xen
Windows RDP VPS – http://veeble.org/vps/windows
Managed VPS – http://veeble.org/vps/managed

————————————————– ————————————————– ————————————————– ————————————————– —————-

We accept the following payment methods

Pay Pal
Skrill
All major international credit cards
Perfect money
Payeer
Advanced cash
Bitcoin, Ethereum, Litecoin, Ripple
All Indian credit and debit cards and Netbanking
Webmoney
paysafecard
Alipay
Unionpay
Tenpay
Qiwi
Electronic Payment Portfolio
Local bank transfer to United States, United Kingdom and Germany
Bank transfer / fast

Learn more about payment methods here – https://www.veeble.org/how-to-pay

————————————————– ————————————————– ————————————————– ————————————————– —————-

Our support

We work tirelessly to ensure world-class support and a great customer experience.
You can contact us via

Email / tickets (24×7)
Live Chat (24×7)

————————————————– ————————————————– ————————————————– ————————————————– —————-

Connect with us via social networks

Twitter: www.twitter.com/veeble
Facebook: www.facebook.com/veeble
LinkedIn: www.linkedin.com/company/veeble

If you have questions, log on to http://veeble.org/support[/QUOTE]

.

Best virtual credit card services in 2019?

Best virtual credit card services in 2019? | Talk Web Hosting

& # 39;);
var sidebar_align = & # 39; right & # 39 ;;
var content_container_margin = parseInt (& # 39; 350px & # 39;);
var sidebar_width = parseInt (& # 39; 330px & # 39;)
// ->

  1. Best virtual credit card services in 2019?

    With recent news that Entropay is closing, I'm curious if anyone can recommend a legitimate company offering easy-to-recharge virtual credit cards. Accepting cryptography is a bonus.


Similar wires

  1. answers: 7

    Last post: 22/01/2003, 2:11

  2. answers: 9

    Last post: 08-11-2001, 2:25 p.m.

  3. answers: 1

    Last post: 08-05-2001, 2:58

  4. answers: 5

    Last post: 06-07-2001, 10:14 p.m.

Authorizations to publish

  • You Maybe not post new discussions
  • You Maybe not post answers
  • You Maybe not post attachments
  • You Maybe not edit your posts




Need cloud or vps hosting that accepts paypal without credit card

Hi guys, I'm looking for reliable cloud hosting or vps that accepts paypal WITHOUT credit card.
In addition, they must have servers in Amsterdam or nearby.

Which of the following accept paypal without a credit card and register easily without having to send them a copy of your passport:

vultr
ultravps
linode
staircase
digitalocean
ramnode
first root
ovh vps
Hetzner
netcup
sun cloud

I hope someone can help me out.

Server Reseller Program – Instant Servers – WHMCS Reseller Module – 5% off + $ 50 credit

ServerStadium offers some of the most competitive servers in the industry, but we also offer an equally competitive reseller program.

For those who plan to have multiple servers with us or simply want to resell our services, this is the only dedicated server reseller program you need to review.

Regardless of whether you resell our services or plan to have many active services with us, you benefit from:

  • Extensive list of servers activated instantly from $ 30 / month! (The installation of the operating system starts immediately after payment)
  • WHMCS reseller module (power control, bandwidth graphics, server reinstallation and server IP / password information for your end user!)
    https://marketplace.whmcs.com/product/4708
  • Receive up to 40% off!
  • Extended Termination Policy (7 days)
  • Free basic troubleshooting on hardware and network
  • Replacement of equipment available 24 hours a day, 7 days a week, free of charge

All qualified Authorized Resellers will receive Level 1 with a 5% discount and a $ 50 starting credit! Qualified resellers must have a verified website used for the sale of services and use an email associated with the domain.

Discount rates billed monthly
LEVEL 0 0% from $ 0 to $ 249.99
LEVEL 1 5% $ 250 to $ 499.99
LEVEL 2 10% $ 500 to $ 999.99
LEVEL 3 15% $ 1000 to $ 1499.99
LEVEL 4 20% $ 1,500 to $ 1999.99
LEVEL 5 25% from 2000 $ to 3749.99 $
LEVEL 6 30% $ 3750 to $ 4999.99
LEVEL 7 35% $ 5,000 to $ 9999.99
LEVEL 8 40% $ 10000 +

All dedicated servers include:

  • Full access to the root
  • 24x7x365 facilities staffed and guarded
  • Remote restart function via the customer portal
  • Real-time monitoring of bandwidth via the customer portal
  • Automatic reinstallation / LiveCD via the customer portal
  • Private VLAN
  • 1000 Mbps uplink port

Become a reseller today!

Need cloud or vps hosting that accepts paypal without credit card

Hi guys, I'm looking for reliable cloud hosting or vps that accepts paypal WITHOUT credit card.
In addition, they must have servers in Amsterdam or nearby.

Which of the following accept paypal without a credit card and register easily without having to send them a copy of your passport:

vultr
ultravps
linode
staircase
digitalocean
ramnode
first root
ovh vps
Hetzner
netcup
sun cloud

I hope someone can help me out.

Collect visible credit card details and stay PCI compliant?

I have to make payments on behalf of clients to third parties. This means that I have to actually see the details of the credit card to enter the online payment facilities of third parties. What is the easiest way to collect and store this information while still complying with PCI?

Identity Theft – Credit Card Requires Digitization of Driver's License to Clear Fraud

Someone stole my phone number at Comcast, then my Capital One credit card. I fear identity fraud. I've finally repaired the phone but Capital One requires that I send them a copy of my driver's license to confirm my identity before they solve the problem with my credit card.
Here's what happened: Someone claiming to be myself ordered a new card over the phone to be shipped to a different address. I have never been contacted about this, even though they have made a great speech about how they check everything. Once confronted, they would not tell me how they tried to contact me to verify that. It is a map that I have not used for more than a year (kept for emergencies) and which is kept locked in a box in my house. Capital One phoned me about a possible fraud, but said that I needed to verify my identity and that the only way to do that is to send them a copy of my driver's license. They will not accept that I go to the local federal agency, the sheriff or their branch and will not show any collection of identity papers.
Professionals have advised me not to do it, especially since it seems that I am also a victim of identity theft – the only way for these thieves to get away from it. 39; get a physical credit card and my phone number is having very personal information. . Therefore, giving more personal information to those potentially involved seems at best dubious, but after spending hours and hours with them for several hours, they do not move.
Is there a way to get around it? Is it legal for them to ask for this?

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123
Proxy Sites Proxy Tunnels Proxy List Working Proxy Sites Hotproxysite Proxy Sites Proxy Sites Anonymous Proxy Anonymous Proxies Top-Proxies.co.uk http://www.proxysitesnow.com Proxy Servers Free Proxies Free Proxy List Proxy List Zoxy Proxy List PR liste all proxy sites More Proxies netgofree netgofree Hide-MyIp - The Best Proxy List American Proxy List www.proxylisty.com/proxylist Web Proxy Submit Proxies Updated Proxy List Updated Proxy List aproxy.org Bypass Proxy Sites Free Proxies List Evolving Critic Business Web Directory Free Proxy List iShortIt MyProxyList Online Proxies Go Proxies Need Proxies PrivateProxies Proxies4MySchool Proxies4Work Free Proxy List Free Proxy Sites ProxyInside Wiksa Proxy ProxyLister.org Free Proxy List ProxyNoid Proxy List Free Proxy List Proxy Sites Proxy TopList ProxyVille UK Proxy WebProxy List RatedProxy.com - Listing the best Web Proxies Free Proxy List SchoolProxiesList Stay Anonymous Proxy List The Power Of Ninja Proxy List UNubstruct Free proxy sites Free proxy sites